aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/node.rs
diff options
context:
space:
mode:
authorFernando Jiménez Moreno <ferjmoreno@gmail.com>2019-03-26 10:48:41 +0100
committerFernando Jiménez Moreno <ferjmoreno@gmail.com>2019-04-26 12:00:26 +0200
commit3f312f7915fb3d025871ab5f4af56c0a9257f77d (patch)
tree9057c99ea9832a174672489e3de264d9c1ff2bca /components/script/dom/node.rs
parentccc4f7c37700a87b58fdaee6468e53983a6fb695 (diff)
downloadservo-3f312f7915fb3d025871ab5f4af56c0a9257f77d.tar.gz
servo-3f312f7915fb3d025871ab5f4af56c0a9257f77d.zip
Set dirty descendants flag only for elements
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r--components/script/dom/node.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs
index d3ef77696ce..889c22f68ca 100644
--- a/components/script/dom/node.rs
+++ b/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);
+ }
}
}