mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Do not add shadow tree styles to stylist
This commit is contained in:
parent
519cc2c317
commit
47872cdaa3
2 changed files with 9 additions and 8 deletions
|
@ -4603,6 +4603,15 @@ impl StyleSheetListOwner for Dom<Document> {
|
||||||
.is_before(sheet_in_doc.owner.upcast())
|
.is_before(sheet_in_doc.owner.upcast())
|
||||||
})
|
})
|
||||||
.cloned();
|
.cloned();
|
||||||
|
|
||||||
|
self.window
|
||||||
|
.layout_chan()
|
||||||
|
.send(Msg::AddStylesheet(
|
||||||
|
sheet.clone(),
|
||||||
|
insertion_point.as_ref().map(|s| s.sheet.clone()),
|
||||||
|
))
|
||||||
|
.unwrap();
|
||||||
|
|
||||||
self.document_or_shadow_root.add_stylesheet(
|
self.document_or_shadow_root.add_stylesheet(
|
||||||
owner,
|
owner,
|
||||||
stylesheets,
|
stylesheets,
|
||||||
|
|
|
@ -253,14 +253,6 @@ impl DocumentOrShadowRoot {
|
||||||
"Wat"
|
"Wat"
|
||||||
);
|
);
|
||||||
|
|
||||||
self.window
|
|
||||||
.layout_chan()
|
|
||||||
.send(Msg::AddStylesheet(
|
|
||||||
sheet.clone(),
|
|
||||||
insertion_point.as_ref().map(|s| s.sheet.clone()),
|
|
||||||
))
|
|
||||||
.unwrap();
|
|
||||||
|
|
||||||
let sheet = StyleSheetInDocument {
|
let sheet = StyleSheetInDocument {
|
||||||
sheet,
|
sheet,
|
||||||
owner: Dom::from_ref(owner),
|
owner: Dom::from_ref(owner),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue