mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-07 01:56:38 +00:00
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:
parent
d18a5b904d
commit
1987318cc2
Notes:
sideshowbarker
2024-07-17 11:29:41 +09:00
Author: https://github.com/awesomekling
Commit: 1987318cc2
Pull-request: https://github.com/SerenityOS/serenity/pull/23626
9 changed files with 100 additions and 98 deletions
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue