aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2017-10-18 12:13:32 +0200
committerEmilio Cobos Álvarez <emilio@crisal.io>2017-10-18 12:14:08 +0200
commit97c9dae40dba494fd03482d48a9a46b50aa1c407 (patch)
tree3576cac78590b0cf0c1673ebc3c05dbaeed16f9f
parent421baa854ea40c7b1a3d1e75acac14da04a3fbcc (diff)
downloadservo-97c9dae40dba494fd03482d48a9a46b50aa1c407.tar.gz
servo-97c9dae40dba494fd03482d48a9a46b50aa1c407.zip
style: Use a proper flattened tree iterator if we're under a shadow tree.
-rw-r--r--components/style/gecko/wrapper.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/style/gecko/wrapper.rs b/components/style/gecko/wrapper.rs
index 3ba4b5d470f..908af2b6bd3 100644
--- a/components/style/gecko/wrapper.rs
+++ b/components/style/gecko/wrapper.rs
@@ -867,6 +867,7 @@ impl<'le> TElement for GeckoElement<'le> {
// ::before/::after, XBL bindings, or nsIAnonymousContentCreators.
if self.is_in_anonymous_subtree() ||
self.has_xbl_binding_with_content() ||
+ self.is_in_shadow_tree() ||
self.may_have_anonymous_children() {
unsafe {
let mut iter: structs::StyleChildrenIterator = ::std::mem::zeroed();