Skip to content
Permalink
Browse files

Set dirty descendants flag only for elements

  • Loading branch information...
ferjm committed Mar 26, 2019
1 parent ccc4f7c commit 3f312f7915fb3d025871ab5f4af56c0a9257f77d
Showing with 3 additions and 1 deletion.
  1. +3 −1 components/script/dom/node.rs
@@ -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);
}
}
}

0 comments on commit 3f312f7

Please sign in to comment.
You can’t perform that action at this time.