Set dirty descendants flag only for elements

This commit is contained in:
Fernando Jiménez Moreno 2019-03-26 10:48:41 +01:00
parent ccc4f7c377
commit 3f312f7915

View file

@ -579,9 +579,11 @@ impl Node {
return;
}
if ancestor.is::<Element>() {
ancestor.set_flag(NodeFlags::HAS_DIRTY_DESCENDANTS, true);
}
}
}
pub fn has_dirty_descendants(&self) -> bool {
self.get_flag(NodeFlags::HAS_DIRTY_DESCENDANTS)