mirror of
https://github.com/servo/servo
synced 2026-05-09 00:22:16 +02:00
This continues implementation of the delete command for document.execCommand. Unfortunately, since these algorithms are vast (30+ steps) and partial implementation leads to lots of issues, this PR is "draw the rest of the owl". I have tried to keep things manageable, by only implementing a couple of extra steps in the delete command, so that we can focus on the "Delete the selection" part. To do that, several algorithms had to be implemented. Most of these algorithms are required both by commands and by algorithms themselves, which is why they are now exposed on a trait. Additionally, all code now uses `cx`, to make sure it is up-to-date with the ongoing migration and since some of the DOM API's it needs to call already require `cx`. Part of #25005 Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>