mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Refactor FileAPI implementation
This commit is contained in:
parent
9b01a4cc97
commit
aea99e081b
8 changed files with 224 additions and 178 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue