mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Bug #1820, add the optional "type" parameter to Blob
This commit is contained in:
parent
37a97f3273
commit
6df9b7fd3a
6 changed files with 66 additions and 51 deletions
|
@ -20,7 +20,8 @@ impl File {
|
|||
fn new_inherited(global: &GlobalRef, type_: BlobTypeId,
|
||||
_file_bits: JSRef<Blob>, name: DOMString) -> File {
|
||||
File {
|
||||
blob: Blob::new_inherited(global, type_, None),
|
||||
//TODO: get type from the underlying filesystem instead of "".to_string()
|
||||
blob: Blob::new_inherited(global, type_, None, ""),
|
||||
name: name,
|
||||
}
|
||||
// XXXManishearth Once Blob is able to store data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue