Rewrite Text::new to current standards.

This commit is contained in:
Ms2ger 2013-11-02 21:55:36 +01:00
parent 8c388f6bd4
commit da37fde44f
3 changed files with 11 additions and 10 deletions

View file

@ -415,8 +415,8 @@ pub fn parse_html(cx: *JSContext,
},
create_text: |data: ~str| {
debug!("create text");
let text = @Text::new(data, document);
unsafe { Node::as_abstract_node(cx, text).to_hubbub_node() }
let text = Text::new(data, document);
unsafe { text.to_hubbub_node() }
},
ref_node: |_| {},
unref_node: |_| {},