style: Use a proper flattened tree iterator if we're under a shadow tree.

This commit is contained in:
Emilio Cobos Álvarez 2017-10-18 12:13:32 +02:00
parent 421baa854e
commit 97c9dae40d
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -867,6 +867,7 @@ impl<'le> TElement for GeckoElement<'le> {
// ::before/::after, XBL bindings, or nsIAnonymousContentCreators. // ::before/::after, XBL bindings, or nsIAnonymousContentCreators.
if self.is_in_anonymous_subtree() || if self.is_in_anonymous_subtree() ||
self.has_xbl_binding_with_content() || self.has_xbl_binding_with_content() ||
self.is_in_shadow_tree() ||
self.may_have_anonymous_children() { self.may_have_anonymous_children() {
unsafe { unsafe {
let mut iter: structs::StyleChildrenIterator = ::std::mem::zeroed(); let mut iter: structs::StyleChildrenIterator = ::std::mem::zeroed();