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