diff options
author | Andreas Kling <kling@serenityos.org> | 2021-01-06 14:10:53 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-06 14:58:48 +0100 |
commit | d9b2650dcc53943a5a5ab837f598365652afda5b (patch) | |
tree | f8f25b6721dd3dffd50f0117fad0a4f0fd91d397 /Libraries/LibWeb/DOM | |
parent | cc024bdcc019bbbe1daa03332da925d033b62626 (diff) | |
download | serenity-d9b2650dcc53943a5a5ab837f598365652afda5b.zip |
LibWeb: Remove specified style from layout nodes
Layout nodes now only carry CSS computer values with them. The main
idea here is to give them only what they need to perform layout, and
leave the rest back in the DOM.
Diffstat (limited to 'Libraries/LibWeb/DOM')
-rw-r--r-- | Libraries/LibWeb/DOM/Element.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Libraries/LibWeb/DOM/Element.cpp b/Libraries/LibWeb/DOM/Element.cpp index 2746e67eb2..e23b5ccb66 100644 --- a/Libraries/LibWeb/DOM/Element.cpp +++ b/Libraries/LibWeb/DOM/Element.cpp @@ -220,7 +220,6 @@ void Element::recompute_style() diff = compute_style_difference(*old_specified_css_values, *new_specified_css_values, document()); if (diff == StyleDifference::None) return; - layout_node()->set_specified_style(*new_specified_css_values); layout_node()->apply_style(*new_specified_css_values); if (diff == StyleDifference::NeedsRelayout) { document().force_layout(); |