mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Privatize Document
This commit is contained in:
parent
d0addd36bb
commit
8825296869
8 changed files with 38 additions and 22 deletions
|
@ -268,7 +268,7 @@ impl LayoutElementHelpers for JS<Element> {
|
|||
}
|
||||
let node: JS<Node> = self.transmute_copy();
|
||||
let owner_doc = node.owner_doc_for_layout().unsafe_get();
|
||||
(*owner_doc).is_html_document
|
||||
(*owner_doc).is_html_document()
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -631,7 +631,7 @@ impl<'a> ElementMethods for JSRef<'a, Element> {
|
|||
let node: JSRef<Node> = NodeCast::from_ref(self);
|
||||
node.owner_doc().root()
|
||||
};
|
||||
let window = doc.window.root();
|
||||
let window = doc.window().root();
|
||||
let list = NamedNodeMap::new(*window, self);
|
||||
self.attr_list.assign(Some(list));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue