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
parent d18a5b904d
commit 1987318cc2
9 changed files with 100 additions and 98 deletions

View File

@@ -1110,7 +1110,7 @@ void Document::update_layout()
page().client().page_did_layout();
}
m_layout_root->recompute_selection_states();
paintable()->recompute_selection_states();
m_needs_layout = false;
m_layout_update_timer->stop();