Commit 89d61c2
script: Avoid double adjustment of Selection ranges during
The editing specification has a different way of updating selection
ranges than the typical live range update method in the `insert` and
`remove` algorithms. Because selections are currently represented as
live ranges (something that will change soon), this means that the
adjustment was being applied twice: once by the live range update and
then once by the `contenteditable` code's range fixup. This change makes
it so that the `contenteditable` fixup runs against the original
selection boundaries, meaning that the final fixup is done only once.
Signed-off-by: Martin Robinson <mrobinson@igalia.com>contenteditable node movement1 parent 6745634 commit 89d61c2
1 file changed
Lines changed: 11 additions & 0 deletions
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
0 commit comments