LibWeb: Move selection state from layout tree to paint tree

Where we paint the selection is obviously paint-related information,
so let's keep it in the paint tree.
This commit is contained in:
Andreas Kling 2024-03-18 07:42:38 +01:00
commit 1987318cc2
Notes: sideshowbarker 2024-07-17 11:29:41 +09:00
9 changed files with 100 additions and 98 deletions

View file

@ -158,17 +158,6 @@ public:
bool children_are_inline() const { return m_children_are_inline; }
void set_children_are_inline(bool value) { m_children_are_inline = value; }
enum class SelectionState {
None, // No selection
Start, // Selection starts in this Node
End, // Selection ends in this Node
StartAndEnd, // Selection starts and ends in this Node
Full, // Selection starts before and ends after this Node
};
SelectionState selection_state() const { return m_selection_state; }
void set_selection_state(SelectionState state) { m_selection_state = state; }
u32 initial_quote_nesting_level() const { return m_initial_quote_nesting_level; }
void set_initial_quote_nesting_level(u32 value) { m_initial_quote_nesting_level = value; }
@ -190,7 +179,6 @@ private:
bool m_anonymous { false };
bool m_has_style { false };
bool m_children_are_inline { false };
SelectionState m_selection_state { SelectionState::None };
bool m_is_flex_item { false };
bool m_is_grid_item { false };