From 97c9dae40dba494fd03482d48a9a46b50aa1c407 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Wed, 18 Oct 2017 12:13:32 +0200 Subject: [PATCH] style: Use a proper flattened tree iterator if we're under a shadow tree. --- components/style/gecko/wrapper.rs | 1 + 1 file changed, 1 insertion(+) 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();