Rewrite Comment::new to current standards.

This commit is contained in:
Ms2ger 2013-11-02 22:10:07 +01:00
parent da37fde44f
commit a431202989
3 changed files with 12 additions and 14 deletions

View file

@ -254,9 +254,7 @@ impl Document {
}
pub fn CreateComment(&self, abstract_self: AbstractDocument, data: &DOMString) -> AbstractNode<ScriptView> {
let cx = self.get_cx();
let comment = @Comment::new(null_str_as_word_null(data), abstract_self);
unsafe { Node::as_abstract_node(cx, comment) }
Comment::new(null_str_as_word_null(data), abstract_self)
}
pub fn Title(&self, _: AbstractDocument) -> DOMString {