mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Remove stylesheets ownership from DocumentOrShadowRoot
This commit is contained in:
parent
3bb50cc479
commit
23b92d54d4
8 changed files with 200 additions and 124 deletions
|
@ -82,7 +82,7 @@ impl HTMLStyleElement {
|
|||
pub fn parse_own_css(&self) {
|
||||
let node = self.upcast::<Node>();
|
||||
let element = self.upcast::<Element>();
|
||||
assert!(node.is_in_doc());
|
||||
assert!(node.is_connected());
|
||||
|
||||
let window = window_from_node(node);
|
||||
let doc = document_from_node(self);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue