summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-10-12 17:44:48 +0200
committerAndreas Kling <kling@serenityos.org>2021-10-12 17:46:39 +0200
commit82672da331a593d10c12ad76324afd0109b23fe4 (patch)
treeef465d83a876279927bd2947f1dd67f5f4a7b174 /Userland
parent959b18bde3dec5acf060f3d3ef56324374610000 (diff)
downloadserenity-82672da331a593d10c12ad76324afd0109b23fe4.zip
LibWeb: Style update must recurse into nodes with dirty children
It's not enough to only visit nodes which are themselves dirty, we have to also visit those with dirty children.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibWeb/DOM/Document.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Document.cpp b/Userland/Libraries/LibWeb/DOM/Document.cpp
index 6be5e0638e..d218e61ece 100644
--- a/Userland/Libraries/LibWeb/DOM/Document.cpp
+++ b/Userland/Libraries/LibWeb/DOM/Document.cpp
@@ -459,7 +459,7 @@ static void update_style_recursively(DOM::Node& node)
if (node.child_needs_style_update()) {
node.for_each_child([&](auto& child) {
- if (child.needs_style_update())
+ if (child.needs_style_update() || child.child_needs_style_update())
update_style_recursively(child);
return IterationDecision::Continue;
});