aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/file.rs
diff options
context:
space:
mode:
authorZhen Zhang <izgzhen@gmail.com>2016-07-12 14:13:57 +0800
committerZhen Zhang <izgzhen@gmail.com>2016-07-13 12:12:32 +0800
commitaea99e081bc7e138f05b967e3634b5dd01105106 (patch)
treeed1436f3d0510b435b0cd3c38c5201869688d0cb /components/script/dom/file.rs
parent9b01a4cc97af29b81f92a403992d0498d4290f4f (diff)
downloadservo-aea99e081bc7e138f05b967e3634b5dd01105106.tar.gz
servo-aea99e081bc7e138f05b967e3634b5dd01105106.zip
Refactor FileAPI implementation
Diffstat (limited to 'components/script/dom/file.rs')
-rw-r--r--components/script/dom/file.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/file.rs b/components/script/dom/file.rs
index 75f73aeda59..e5a41965bba 100644
--- a/components/script/dom/file.rs
+++ b/components/script/dom/file.rs
@@ -54,7 +54,8 @@ impl File {
let global = GlobalRef::Window(window);
- File::new(global, BlobImpl::new_from_file(selected.id), name, Some(selected.modified as i64), "")
+ File::new(global, BlobImpl::new_from_file(selected.id, selected.filename, selected.size),
+ name, Some(selected.modified as i64), "")
}
// https://w3c.github.io/FileAPI/#file-constructor