aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/file.rs
diff options
context:
space:
mode:
authorChad Kimes <ckimes89@gmail.com>2016-01-10 21:19:07 -0500
committerChad Kimes <ckimes89@gmail.com>2016-01-10 21:20:31 -0500
commit5e3bbdcafb9d4c36d3fe2688f516859dc87ec5c0 (patch)
tree82e12e9ea396b5fff05fbad186591c10472acbbe /components/script/dom/file.rs
parent4d8d6bf7ff286a0257a3f42ea514f305670b6c15 (diff)
downloadservo-5e3bbdcafb9d4c36d3fe2688f516859dc87ec5c0.tar.gz
servo-5e3bbdcafb9d4c36d3fe2688f516859dc87ec5c0.zip
Remove global field from Blob
Diffstat (limited to 'components/script/dom/file.rs')
-rw-r--r--components/script/dom/file.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/components/script/dom/file.rs b/components/script/dom/file.rs
index bdf06afb54a..8628c0ee6f6 100644
--- a/components/script/dom/file.rs
+++ b/components/script/dom/file.rs
@@ -18,11 +18,10 @@ pub struct File {
}
impl File {
- fn new_inherited(global: GlobalRef,
- _file_bits: &Blob, name: DOMString) -> File {
+ fn new_inherited(_file_bits: &Blob, name: DOMString) -> File {
File {
//TODO: get type from the underlying filesystem instead of "".to_string()
- blob: Blob::new_inherited(global, Arc::new(Vec::new()), None, None, ""),
+ blob: Blob::new_inherited(Arc::new(Vec::new()), None, None, ""),
name: name,
}
// XXXManishearth Once Blob is able to store data
@@ -30,7 +29,7 @@ impl File {
}
pub fn new(global: GlobalRef, file_bits: &Blob, name: DOMString) -> Root<File> {
- reflect_dom_object(box File::new_inherited(global, file_bits, name),
+ reflect_dom_object(box File::new_inherited(file_bits, name),
global,
FileBinding::Wrap)
}