mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Use Window::get_cx() in DocumentFragment::Constructor.
This commit is contained in:
parent
8d3c7a2ded
commit
b34432471e
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ impl DocumentFragment {
|
|||
}
|
||||
|
||||
pub fn Constructor(owner: @mut Window) -> Fallible<AbstractNode<ScriptView>> {
|
||||
let cx = owner.page.js_info.get_ref().js_compartment.cx.ptr;
|
||||
let cx = owner.get_cx();
|
||||
let fragment = @DocumentFragment::new(owner.Document());
|
||||
Ok(unsafe { Node::as_abstract_node(cx, fragment) })
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue