mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update Blob::{new, new_inherited} to take Strings
This commit is contained in:
parent
3b98ce0dcc
commit
af325a9a3a
5 changed files with 13 additions and 14 deletions
|
@ -26,7 +26,7 @@ impl File {
|
|||
fn new_inherited(blob_impl: BlobImpl, name: DOMString,
|
||||
modified: Option<i64>, typeString: &str) -> File {
|
||||
File {
|
||||
blob: Blob::new_inherited(blob_impl, typeString),
|
||||
blob: Blob::new_inherited(blob_impl, typeString.to_owned()),
|
||||
name: name,
|
||||
// https://w3c.github.io/FileAPI/#dfn-lastModified
|
||||
modified: match modified {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue