mirror of
https://github.com/servo/servo.git
synced 2025-07-25 08:10:21 +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,9 +579,11 @@ impl Node {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ancestor.is::<Element>() {
|
||||||
ancestor.set_flag(NodeFlags::HAS_DIRTY_DESCENDANTS, true);
|
ancestor.set_flag(NodeFlags::HAS_DIRTY_DESCENDANTS, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pub fn has_dirty_descendants(&self) -> bool {
|
pub fn has_dirty_descendants(&self) -> bool {
|
||||||
self.get_flag(NodeFlags::HAS_DIRTY_DESCENDANTS)
|
self.get_flag(NodeFlags::HAS_DIRTY_DESCENDANTS)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue