mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Issue #888 - Node's owner document should never be None.
This commit is contained in:
parent
59d2d345c8
commit
04319fdb68
18 changed files with 144 additions and 135 deletions
|
@ -21,7 +21,7 @@ impl HTMLMapElement {
|
|||
}
|
||||
|
||||
fn get_scope_and_cx(&self) -> (*JSObject, *JSContext) {
|
||||
let doc = self.htmlelement.element.node.owner_doc.unwrap();
|
||||
let doc = self.htmlelement.element.node.owner_doc;
|
||||
let win = doc.with_base(|doc| doc.window.unwrap());
|
||||
let cx = win.page.js_info.get_ref().js_compartment.cx.ptr;
|
||||
let scope = win.reflector().get_jsobject();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue