diff --git a/components/style/gecko/wrapper.rs b/components/style/gecko/wrapper.rs index 6d62f54951c..b3cd83ea3df 100644 --- a/components/style/gecko/wrapper.rs +++ b/components/style/gecko/wrapper.rs @@ -238,7 +238,6 @@ impl<'ln> GeckoNode<'ln> { /// This logic is duplicated in Gecko's nsIContent::IsInAnonymousSubtree. #[inline] fn is_in_anonymous_subtree(&self) -> bool { - use gecko_bindings::structs::NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE; use gecko_bindings::structs::NODE_IS_IN_SHADOW_TREE; self.flags() & (NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE as u32) != 0 || ((self.flags() & (NODE_IS_IN_SHADOW_TREE as u32) == 0) && @@ -1144,7 +1143,7 @@ impl<'le> TElement for GeckoElement<'le> { // level native anonymous content subtree roots, since they're not // really roots from the style fixup perspective. Checking that we // are NAC handles both cases. - self.flags() & (NODE_IS_IN_NATIVE_ANONYMOUS_SUBTREE as u32) != 0 + self.is_native_anonymous() } unsafe fn set_selector_flags(&self, flags: ElementSelectorFlags) {