Use Window::get_cx() in DocumentFragment::Constructor.

This commit is contained in:
Ms2ger 2013-10-14 21:06:00 +02:00
parent 8d3c7a2ded
commit b34432471e

View file

@ -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) })
}