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:
parent
cf4870c93e
commit
d47f77169f
6 changed files with 60 additions and 15 deletions
|
@ -54,6 +54,8 @@ public:
|
|||
|
||||
void build_stacking_context_tree();
|
||||
|
||||
void recompute_selection_states();
|
||||
|
||||
private:
|
||||
LayoutRange m_selection;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue