mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibWeb: Distinguish parent/child on style invalidation for DOM insertion
This commit is contained in:
parent
f351f75a34
commit
7d644ecd50
Notes:
github-actions[bot]
2024-09-22 18:08:35 +00:00
Author: https://github.com/awesomekling
Commit: 7d644ecd50
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1483
Reviewed-by: https://github.com/kalenikaliaksandr
2 changed files with 2 additions and 1 deletions
|
@ -682,7 +682,7 @@ void Node::insert_before(JS::NonnullGCPtr<Node> node, JS::GCPtr<Node> child, boo
|
|||
|
||||
if (is_connected()) {
|
||||
// FIXME: This will need to become smarter when we implement the :has() selector.
|
||||
invalidate_style(StyleInvalidationReason::NodeInsertBefore);
|
||||
invalidate_style(StyleInvalidationReason::ParentOfInsertedNode);
|
||||
document().invalidate_layout_tree();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue