Rewrite DocumentFragment::new to current standards.

This commit is contained in:
Ms2ger 2013-11-02 22:23:44 +01:00
parent a431202989
commit 78e51c8309
2 changed files with 12 additions and 8 deletions

View file

@ -244,9 +244,7 @@ impl Document {
}
pub fn CreateDocumentFragment(&self, abstract_self: AbstractDocument) -> AbstractNode<ScriptView> {
let cx = self.get_cx();
let fragment = @DocumentFragment::new(abstract_self);
unsafe { Node::as_abstract_node(cx, fragment) }
DocumentFragment::new(abstract_self)
}
pub fn CreateTextNode(&self, abstract_self: AbstractDocument, data: &DOMString) -> AbstractNode<ScriptView> {