diff options
author | Andreas Kling <kling@serenityos.org> | 2021-10-12 17:44:48 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-10-12 17:46:39 +0200 |
commit | 82672da331a593d10c12ad76324afd0109b23fe4 (patch) | |
tree | ef465d83a876279927bd2947f1dd67f5f4a7b174 /Userland | |
parent | 959b18bde3dec5acf060f3d3ef56324374610000 (diff) | |
download | serenity-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.cpp | 2 |
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; }); |