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.
This commit is contained in:
Andreas Kling 2021-01-06 14:10:53 +01:00
commit d9b2650dcc
Notes: sideshowbarker 2024-07-19 00:04:34 +09:00
10 changed files with 57 additions and 38 deletions

View file

@ -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();