Skip to content

Commit

Permalink
Use Window::get_cx() in DocumentFragment::Constructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ms2ger committed Oct 14, 2013
1 parent 8d3c7a2 commit b344324
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/script/dom/documentfragment.rs
Expand Up @@ -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) })
}
Expand Down

5 comments on commit b344324

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from jdm
at Ms2ger@b344324

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging Ms2ger/servo/get_cx-followup = b344324 into auto

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ms2ger/servo/get_cx-followup = b344324 merged ok, testing candidate = a3d3337

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = a3d3337

Please sign in to comment.