aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/documentfragment.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/documentfragment.rs')
-rw-r--r--components/script/dom/documentfragment.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/components/script/dom/documentfragment.rs b/components/script/dom/documentfragment.rs
index 716f3dabcb5..8f35a0d8781 100644
--- a/components/script/dom/documentfragment.rs
+++ b/components/script/dom/documentfragment.rs
@@ -42,7 +42,10 @@ impl DocumentFragment {
Self::new_with_proto(document, None)
}
- fn new_with_proto(document: &Document, proto: Option<HandleObject>) -> DomRoot<DocumentFragment> {
+ fn new_with_proto(
+ document: &Document,
+ proto: Option<HandleObject>,
+ ) -> DomRoot<DocumentFragment> {
Node::reflect_node_with_proto(
Box::new(DocumentFragment::new_inherited(document)),
document,
@@ -51,7 +54,10 @@ impl DocumentFragment {
}
#[allow(non_snake_case)]
- pub fn Constructor(window: &Window, proto: Option<HandleObject>) -> Fallible<DomRoot<DocumentFragment>> {
+ pub fn Constructor(
+ window: &Window,
+ proto: Option<HandleObject>,
+ ) -> Fallible<DomRoot<DocumentFragment>> {
let document = window.Document();
Ok(DocumentFragment::new_with_proto(&document, proto))