mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Rewrite DocumentFragment::new to current standards.
This commit is contained in:
parent
a431202989
commit
78e51c8309
2 changed files with 12 additions and 8 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue