1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:58:12 +00:00

LibWeb: Remember the selection state of each LayoutNode

Instead of computing it on the fly while painting each layout node,
they now remember their selection state. This avoids a whole bunch
of tree traversal while painting with anything selected.
This commit is contained in:
Andreas Kling 2020-08-21 17:50:41 +02:00
parent cf4870c93e
commit d47f77169f
6 changed files with 60 additions and 15 deletions

View file

@ -54,6 +54,8 @@ public:
void build_stacking_context_tree();
void recompute_selection_states();
private:
LayoutRange m_selection;
};