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,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);
}
}
}