mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-03 06:40:05 +00:00
LibWeb: Speed up computed style calculation
Rather than destroying and rebuilding the entire document layout tree in every call to `ComputedCSSStyleDeclaration::property()`, we now just make sure that the layout tree exists. This speeds up the DOM Inspector significantly, from taking several seconds to select an element, to almost instant. :^)
This commit is contained in:
parent
344397557c
commit
3f31f109b5
Notes:
sideshowbarker
2024-07-18 03:57:12 +09:00
Author: https://github.com/AtkinsSJ
Commit: 3f31f109b5
Pull-request: https://github.com/SerenityOS/serenity/pull/10036
3 changed files with 8 additions and 1 deletions
|
@ -144,6 +144,7 @@ public:
|
|||
|
||||
void force_layout();
|
||||
void invalidate_layout();
|
||||
void ensure_layout();
|
||||
|
||||
void update_style();
|
||||
void update_layout();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue