mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-28 04:08:08 +00:00
LibWeb: Invalidate layout tree of parent of inserted node
f7a3f78 made the layout tree invalidate only the inserted nodes
themselves, but it turned out that CSS containment invalidation relies
on the parent being invalidated as well.
This commit is contained in:
committed by
Alexander Kalenik
parent
f696f20cd8
commit
ccb513abf7
@@ -767,6 +767,10 @@ void Node::insert_before(GC::Ref<Node> node, GC::Ptr<Node> child, bool suppress_
|
||||
node->post_connection();
|
||||
}
|
||||
|
||||
if (is_connected()) {
|
||||
set_needs_layout_tree_update(true);
|
||||
}
|
||||
|
||||
document().bump_dom_tree_version();
|
||||
}
|
||||
|
||||
@@ -1405,7 +1409,6 @@ void Node::set_needs_style_update(bool value)
|
||||
|
||||
void Node::post_connection()
|
||||
{
|
||||
set_needs_layout_tree_update(true);
|
||||
}
|
||||
|
||||
void Node::inserted()
|
||||
|
||||
Reference in New Issue
Block a user