aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/formdata.rs
diff options
context:
space:
mode:
authorEdit Balint <edbalint@inf.u-szeged.hu>2014-06-13 14:58:38 +0200
committerEdit Balint <edbalint@inf.u-szeged.hu>2014-06-13 19:06:28 +0200
commitbda29ade0912f7e17958f2f43dbe068bbb2bfd51 (patch)
treea456cf772921c3c98ab256dc72d8a7c6e14a6062 /src/components/script/dom/formdata.rs
parentda668f53d9df3cc21e708d4521aef458ea5bf231 (diff)
downloadservo-bda29ade0912f7e17958f2f43dbe068bbb2bfd51.tar.gz
servo-bda29ade0912f7e17958f2f43dbe068bbb2bfd51.zip
Replace uses of JS<T>.unrooted() with JS::from_rooted #2580
Diffstat (limited to 'src/components/script/dom/formdata.rs')
-rw-r--r--src/components/script/dom/formdata.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/dom/formdata.rs b/src/components/script/dom/formdata.rs
index 40dc6935fe6..3cc3e1e29ec 100644
--- a/src/components/script/dom/formdata.rs
+++ b/src/components/script/dom/formdata.rs
@@ -33,7 +33,7 @@ impl FormData {
FormData {
data: Traceable::new(RefCell::new(HashMap::new())),
reflector_: Reflector::new(),
- window: window.unrooted(),
+ window: JS::from_rooted(window),
form: form.unrooted(),
}
}
@@ -55,7 +55,7 @@ pub trait FormDataMethods {
impl<'a> FormDataMethods for JSRef<'a, FormData> {
fn Append(&self, name: DOMString, value: &JSRef<Blob>, filename: Option<DOMString>) {
let blob = BlobData {
- blob: value.unrooted(),
+ blob: JS::from_rooted(value),
name: filename.unwrap_or("default".to_string())
};
self.data.deref().borrow_mut().insert(name.clone(), blob);