mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-04 07:09:47 +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:
parent
f696f20cd8
commit
ccb513abf7
Notes:
github-actions[bot]
2025-02-07 00:24:05 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: ccb513abf7
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3484
1 changed files with 4 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue