mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Set dirty descendants flag only for elements
This commit is contained in:
parent
ccc4f7c377
commit
3f312f7915
1 changed files with 3 additions and 1 deletions
|
@ -579,7 +579,9 @@ impl Node {
|
|||
return;
|
||||
}
|
||||
|
||||
ancestor.set_flag(NodeFlags::HAS_DIRTY_DESCENDANTS, true);
|
||||
if ancestor.is::<Element>() {
|
||||
ancestor.set_flag(NodeFlags::HAS_DIRTY_DESCENDANTS, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue