mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
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
This commit is contained in:
parent
07f86404cd
commit
28ea593347
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue