aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/file.rs
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-10-14 12:47:48 -0600
committerbors-servo <metajack+bors@gmail.com>2015-10-14 12:47:48 -0600
commit32daa17d5cbcad02db0713e21e52410cdc60480e (patch)
treed5cf3137ab06523b1c8958d830751b74642f048e /components/script/dom/file.rs
parent8db8a86ab1e943b5102a05d6d31800579fdb7875 (diff)
parentaab2c40389c71c4b0db3ffa75bdec99cd440b8af (diff)
downloadservo-32daa17d5cbcad02db0713e21e52410cdc60480e.tar.gz
servo-32daa17d5cbcad02db0713e21e52410cdc60480e.zip
Auto merge of #7873 - nox:codegen-typeid, r=Ms2ger
Generate the various TypeId enums in codegen This frees us forever from caring about maintaining these enums. The last commit removes their use from the initialisation of interface objects derived from Node. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7873) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/file.rs')
-rw-r--r--components/script/dom/file.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/file.rs b/components/script/dom/file.rs
index f6b48927409..b9ccd721a47 100644
--- a/components/script/dom/file.rs
+++ b/components/script/dom/file.rs
@@ -7,7 +7,7 @@ use dom::bindings::codegen::Bindings::FileBinding::FileMethods;
use dom::bindings::global::GlobalRef;
use dom::bindings::js::Root;
use dom::bindings::utils::reflect_dom_object;
-use dom::blob::{Blob, BlobTypeId};
+use dom::blob::Blob;
use util::str::DOMString;
#[dom_struct]
@@ -17,11 +17,11 @@ pub struct File {
}
impl File {
- fn new_inherited(global: GlobalRef, type_: BlobTypeId,
+ fn new_inherited(global: GlobalRef,
_file_bits: &Blob, name: DOMString) -> File {
File {
//TODO: get type from the underlying filesystem instead of "".to_string()
- blob: Blob::new_inherited(global, type_, None, ""),
+ blob: Blob::new_inherited(global, None, ""),
name: name,
}
// XXXManishearth Once Blob is able to store data
@@ -29,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, BlobTypeId::File, file_bits, name),
+ reflect_dom_object(box File::new_inherited(global, file_bits, name),
global,
FileBinding::Wrap)
}