This improves the performance by reducing the number of times getAppliedStyles
is called (once per update, rather than once per property to check), and
paves the way for the direct cursor styling to be taken into account.
This rewrite fixed 3 failing operation tests related to whitespace
behaviours.
The current implementation supports
* List & list item removal
* Image & frame remove
* Text removal
* Paragraph merging
As part of this, improvements were made to how the cursor positioning
is fixed to attempt to always keep the cursor in the paragraph it starts
in to avoid line jumping near paragraph boundaries.