summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/DOM/Document.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/Document.cpp')
-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;
});