aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/formdata.rs
diff options
context:
space:
mode:
authorTim Taubert <tim@timtaubert.de>2014-10-12 13:27:00 +0200
committerTim Taubert <tim@timtaubert.de>2014-10-13 13:25:43 +0200
commitad6649d1022890eb3ecc295e01ebd23fd974eef2 (patch)
tree96b72203230ddb53e9a3180e178d8c474281fece /components/script/dom/formdata.rs
parentdf60f8b2c559cb4119b96174231fc4161bdcb4da (diff)
downloadservo-ad6649d1022890eb3ecc295e01ebd23fd974eef2.tar.gz
servo-ad6649d1022890eb3ecc295e01ebd23fd974eef2.zip
Privatize File
Diffstat (limited to 'components/script/dom/formdata.rs')
-rw-r--r--components/script/dom/formdata.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/formdata.rs b/components/script/dom/formdata.rs
index 1e2e1ca7049..140ff809125 100644
--- a/components/script/dom/formdata.rs
+++ b/components/script/dom/formdata.rs
@@ -113,7 +113,7 @@ impl PrivateFormDataHelpers for FormData {
fn get_file_from_blob(&self, value: JSRef<Blob>, filename: Option<DOMString>) -> Temporary<File> {
let global = self.global.root();
let f: Option<JSRef<File>> = FileCast::to_ref(value);
- let name = filename.unwrap_or(f.map(|inner| inner.name.clone()).unwrap_or("blob".to_string()));
+ let name = filename.unwrap_or(f.map(|inner| inner.name().clone()).unwrap_or("blob".to_string()));
File::new(&global.root_ref(), value, name)
}
}