diff options
-rw-r--r-- | components/style/gecko/wrapper.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/components/style/gecko/wrapper.rs b/components/style/gecko/wrapper.rs index d26a1d8663e..ec3d6f91968 100644 --- a/components/style/gecko/wrapper.rs +++ b/components/style/gecko/wrapper.rs @@ -227,8 +227,10 @@ impl<'ln> GeckoNode<'ln> { return false; } - if parent_el.map_or(false, |el| el.has_shadow_root()) { - return false; + if let Some(parent) = parent_el { + if parent.has_shadow_root() || parent.get_xbl_binding().is_some() { + return false; + } } true |