mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +00:00
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.
This commit is contained in:
parent
959b18bde3
commit
82672da331
Notes:
sideshowbarker
2024-07-18 02:48:21 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/82672da331a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue