aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/formdata.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/formdata.rs')
-rw-r--r--components/script/dom/formdata.rs12
1 files changed, 10 insertions, 2 deletions
diff --git a/components/script/dom/formdata.rs b/components/script/dom/formdata.rs
index 3d1d28a0ddc..c4234ff83e7 100644
--- a/components/script/dom/formdata.rs
+++ b/components/script/dom/formdata.rs
@@ -46,8 +46,16 @@ impl FormData {
Self::new_with_proto(form_datums, global, None)
}
- fn new_with_proto(form_datums: Option<Vec<FormDatum>>, global: &GlobalScope, proto: Option<HandleObject>) -> DomRoot<FormData> {
- reflect_dom_object2(Box::new(FormData::new_inherited(form_datums)), global, proto)
+ fn new_with_proto(
+ form_datums: Option<Vec<FormDatum>>,
+ global: &GlobalScope,
+ proto: Option<HandleObject>,
+ ) -> DomRoot<FormData> {
+ reflect_dom_object2(
+ Box::new(FormData::new_inherited(form_datums)),
+ global,
+ proto,
+ )
}
// https://xhr.spec.whatwg.org/#dom-formdata