ladybird/Userland/Libraries/LibWeb/Selection
Andreas Kling b79bc25a1f LibWeb: Use DOM Selection instead of ad-hoc layout tree selection
Before this patch, we were expressing the current selection as a range
between two points in the layout tree. This was a made-up concept I
called LayoutRange (2x LayoutPosition) and as it turns out, we don't
actually need it!

Instead, we can just use the Selection API from the Selection API spec.
This API expresses selection in terms of the DOM, and we already had
many of the building blocks implemented.

To ensure that selections get visually updated when the underlying Range
of an active Selection is programmatically manipulated, Range now has
an "associated Selection". If a range is updated while associated with
a selection, we recompute layout tree selection states and repaint the
page to make it user-visible.
2023-01-12 19:55:10 +01:00
..
Selection.cpp LibWeb: Use DOM Selection instead of ad-hoc layout tree selection 2023-01-12 19:55:10 +01:00
Selection.h LibWeb: Use DOM Selection instead of ad-hoc layout tree selection 2023-01-12 19:55:10 +01:00
Selection.idl LibWeb: Add imports to all IDL files that depend on others 2022-02-16 22:48:32 +03:30