mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:18:13 +00:00
LibWeb: Invalidate the layout tree on DOM node insertion
This commit is contained in:
parent
f081a89cd9
commit
3cea86632d
3 changed files with 12 additions and 0 deletions
|
@ -487,6 +487,8 @@ void Node::insert_before(JS::NonnullGCPtr<Node> node, JS::GCPtr<Node> child, boo
|
|||
|
||||
// FIXME: This will need to become smarter when we implement the :has() selector.
|
||||
invalidate_style();
|
||||
|
||||
document().invalidate_layout();
|
||||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#concept-node-pre-insert
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue