diff options
Diffstat (limited to 'components/script/dom/comment.rs')
-rw-r--r-- | components/script/dom/comment.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/comment.rs b/components/script/dom/comment.rs index 3bed2a647dd..093b1263b9e 100644 --- a/components/script/dom/comment.rs +++ b/components/script/dom/comment.rs @@ -21,13 +21,14 @@ pub struct Comment { impl Comment { fn new_inherited(text: DOMString, document: &Document) -> Comment { Comment { - characterdata: CharacterData::new_inherited(text, document) + characterdata: CharacterData::new_inherited(text, document), } } pub fn new(text: DOMString, document: &Document) -> Root<Comment> { Node::reflect_node(box Comment::new_inherited(text, document), - document, CommentBinding::Wrap) + document, + CommentBinding::Wrap) } pub fn Constructor(global: GlobalRef, data: DOMString) -> Fallible<Root<Comment>> { |