Browse Source

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

Andreas Kling 2 năm trước cách đây
mục cha
commit
f36cbd3b65

+ 1 - 1
Userland/Libraries/LibWeb/DOM/Node.cpp

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