diff options
author | Ms2ger <ms2ger@gmail.com> | 2013-11-02 22:10:07 +0100 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2013-11-02 22:10:07 +0100 |
commit | a43120298913b98971e4c3408c94eba610dfc78c (patch) | |
tree | 9b0dd10b9221827000fef117a06a05b373df1f44 /src/components/script/html/hubbub_html_parser.rs | |
parent | da37fde44f634ae9ef57dc09ed5a6e01391527d1 (diff) | |
download | servo-a43120298913b98971e4c3408c94eba610dfc78c.tar.gz servo-a43120298913b98971e4c3408c94eba610dfc78c.zip |
Rewrite Comment::new to current standards.
Diffstat (limited to 'src/components/script/html/hubbub_html_parser.rs')
-rw-r--r-- | src/components/script/html/hubbub_html_parser.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/components/script/html/hubbub_html_parser.rs b/src/components/script/html/hubbub_html_parser.rs index 155b60ccf85..07f5fb7f0df 100644 --- a/src/components/script/html/hubbub_html_parser.rs +++ b/src/components/script/html/hubbub_html_parser.rs @@ -8,7 +8,7 @@ use dom::htmlelement::HTMLElement; use dom::htmlheadingelement::{Heading1, Heading2, Heading3, Heading4, Heading5, Heading6}; use dom::htmliframeelement::IFrameSize; use dom::htmlformelement::HTMLFormElement; -use dom::node::{AbstractNode, ElementNodeTypeId, Node, ScriptView}; +use dom::node::{AbstractNode, ElementNodeTypeId, ScriptView}; use dom::types::*; use html::cssparse::{InlineProvenance, StylesheetProvenance, UrlProvenance, spawn_css_parser}; use js::jsapi::JSContext; @@ -314,10 +314,8 @@ pub fn parse_html(cx: *JSContext, parser.set_tree_handler(~hubbub::TreeHandler { create_comment: |data: ~str| { debug!("create comment"); - let comment = @Comment::new(data, document); - unsafe { - Node::as_abstract_node(cx, comment).to_hubbub_node() - } + let comment = Comment::new(data, document); + unsafe { comment.to_hubbub_node() } }, create_doctype: |doctype: ~hubbub::Doctype| { debug!("create doctype"); |