summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/DOM
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-01-06 14:10:53 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-06 14:58:48 +0100
commitd9b2650dcc53943a5a5ab837f598365652afda5b (patch)
treef8f25b6721dd3dffd50f0117fad0a4f0fd91d397 /Libraries/LibWeb/DOM
parentcc024bdcc019bbbe1daa03332da925d033b62626 (diff)
downloadserenity-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.cpp1
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();