mirror of
https://github.com/servo/servo.git
synced 2025-06-20 15:18:58 +01:00
Rewrite Text::new to current standards.
This commit is contained in:
parent
8c388f6bd4
commit
da37fde44f
3 changed files with 11 additions and 10 deletions
|
@ -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: |_| {},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue