diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2021-09-15 10:12:08 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-15 11:24:11 +0200 |
commit | 3f31f109b56730f71d6d61914429038501a8ed23 (patch) | |
tree | 3cc88370cc670a5252b4b7b775d4ca72a15758f1 /Userland/Libraries/LibWeb/HTML/HTMLStyleElement.h | |
parent | 344397557c7c26a275d4b83304d15a381d4f9d8e (diff) | |
download | serenity-3f31f109b56730f71d6d61914429038501a8ed23.zip |
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. :^)
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/HTMLStyleElement.h')
0 files changed, 0 insertions, 0 deletions