1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:18:13 +00:00

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
parent 5c6621547c
commit f36cbd3b65

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