LibWeb: Invalidate layout when a DOM node is removed from the tree

This commit is contained in:
Andreas Kling 2022-09-25 02:26:36 +02:00
commit f36cbd3b65
Notes: sideshowbarker 2024-07-17 06:39:14 +09:00

View file

@ -604,7 +604,7 @@ void Node::remove(bool suppress_observers)
// 21. Run the children changed steps for parent.
parent->children_changed();
document().invalidate_style();
document().invalidate_layout();
}
// https://dom.spec.whatwg.org/#concept-node-replace