From 0cfc91d6cefb8502e7d1cafea0fd42d828ca6436 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Thu, 14 Nov 2019 12:54:00 +0000 Subject: [PATCH] style: Remove NODE_MAY_BE_IN_BINDING_MNGR. Never set anymore. Differential Revision: https://phabricator.services.mozilla.com/D52994 --- components/style/gecko/wrapper.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/style/gecko/wrapper.rs b/components/style/gecko/wrapper.rs index da989e5a74a..f76c0c5fda6 100644 --- a/components/style/gecko/wrapper.rs +++ b/components/style/gecko/wrapper.rs @@ -300,7 +300,10 @@ impl<'ln> GeckoNode<'ln> { fn flattened_tree_parent_is_parent(&self) -> bool { use crate::gecko_bindings::structs::*; let flags = self.flags(); - if flags & (NODE_MAY_BE_IN_BINDING_MNGR as u32 | NODE_IS_IN_SHADOW_TREE as u32) != 0 { + + // FIXME(emilio): The shadow tree condition seems it shouldn't be needed + // anymore, if we check for slots. + if self.is_in_shadow_tree() { return false; }