From 28ea5933471fcec4e615d5f70d9f403bfeac2dda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Sun, 25 Feb 2018 19:01:42 +0100 Subject: [PATCH] style: Make a style sharing check account for Shadow DOM explicitly too. Good I added tests for this (style-sharing-across-shadow.html). Bug: 1425759 Reviewed-by: xidorn MozReview-Commit-ID: 7d4WioCDAn7 --- components/style/gecko/wrapper.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/style/gecko/wrapper.rs b/components/style/gecko/wrapper.rs index 20e9f9f3860..aadf55dd6a7 100644 --- a/components/style/gecko/wrapper.rs +++ b/components/style/gecko/wrapper.rs @@ -991,7 +991,7 @@ impl<'le> TElement for GeckoElement<'le> { return self.as_node().owner_doc().as_node(); } - if self.xbl_binding().is_some() { + if self.xbl_binding().is_some() || self.shadow_root().is_some() { return self.as_node(); }