Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Set dirty descendants flag only for elements
  • Loading branch information
ferjm committed Apr 26, 2019
1 parent ccc4f7c commit 3f312f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/script/dom/node.rs
Expand Up @@ -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);
}
}
}

Expand Down

0 comments on commit 3f312f7

Please sign in to comment.