aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/comment.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/comment.rs')
-rw-r--r--components/script/dom/comment.rs18
1 files changed, 15 insertions, 3 deletions
diff --git a/components/script/dom/comment.rs b/components/script/dom/comment.rs
index 96df242a5df..4c5ca9d488e 100644
--- a/components/script/dom/comment.rs
+++ b/components/script/dom/comment.rs
@@ -26,12 +26,24 @@ impl Comment {
}
}
- pub fn new(text: DOMString, document: &Document, proto: Option<HandleObject>) -> DomRoot<Comment> {
- Node::reflect_node_with_proto(Box::new(Comment::new_inherited(text, document)), document, proto)
+ pub fn new(
+ text: DOMString,
+ document: &Document,
+ proto: Option<HandleObject>,
+ ) -> DomRoot<Comment> {
+ Node::reflect_node_with_proto(
+ Box::new(Comment::new_inherited(text, document)),
+ document,
+ proto,
+ )
}
#[allow(non_snake_case)]
- pub fn Constructor(window: &Window, proto: Option<HandleObject>, data: DOMString) -> Fallible<DomRoot<Comment>> {
+ pub fn Constructor(
+ window: &Window,
+ proto: Option<HandleObject>,
+ data: DOMString,
+ ) -> Fallible<DomRoot<Comment>> {
let document = window.Document();
Ok(Comment::new(data, &document, proto))
}