diff options
author | Andreas Kling <kling@serenityos.org> | 2020-08-21 17:50:41 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-21 17:57:24 +0200 |
commit | d47f77169f8c3bdb6675a67a736b5591a752b52c (patch) | |
tree | 4ad2cb19410f7fafd5e17a05548dc18ecd3e6612 /Libraries/LibWeb/Layout/LayoutDocument.h | |
parent | cf4870c93e274ad7f0620f86241b85de9a2adc76 (diff) | |
download | serenity-d47f77169f8c3bdb6675a67a736b5591a752b52c.zip |
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.
Diffstat (limited to 'Libraries/LibWeb/Layout/LayoutDocument.h')
-rw-r--r-- | Libraries/LibWeb/Layout/LayoutDocument.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Libraries/LibWeb/Layout/LayoutDocument.h b/Libraries/LibWeb/Layout/LayoutDocument.h index 79dbd7312a..2f18e90f44 100644 --- a/Libraries/LibWeb/Layout/LayoutDocument.h +++ b/Libraries/LibWeb/Layout/LayoutDocument.h @@ -54,6 +54,8 @@ public: void build_stacking_context_tree(); + void recompute_selection_states(); + private: LayoutRange m_selection; }; |