mirror of
https://github.com/servo/servo.git
synced 2025-06-19 14:48:59 +01:00
Merge pull request #2834 from Ms2ger/file-window
Remove the unused window field from File; r=Manishearth
This commit is contained in:
commit
2d4d9afcda
1 changed files with 1 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use dom::bindings::js::{JS, JSRef, Temporary};
|
||||
use dom::bindings::js::{JSRef, Temporary};
|
||||
use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};
|
||||
use dom::bindings::codegen::Bindings::FileBinding;
|
||||
use dom::blob::{Blob, BlobType, FileTypeId};
|
||||
|
@ -13,7 +13,6 @@ use servo_util::str::DOMString;
|
|||
pub struct File {
|
||||
pub blob: Blob,
|
||||
pub name: DOMString,
|
||||
pub window: JS<Window>,
|
||||
pub type_: BlobType
|
||||
}
|
||||
|
||||
|
@ -22,7 +21,6 @@ impl File {
|
|||
File {
|
||||
blob: Blob::new_inherited(window),
|
||||
name: name,
|
||||
window: JS::from_rooted(window),
|
||||
type_: FileTypeId
|
||||
}
|
||||
// XXXManishearth Once Blob is able to store data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue