mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
auto merge of #1058 : Ms2ger/servo/get_cx-followup, r=jdm
These changes landed in parallel.
This commit is contained in:
commit
a3d3337aed
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