aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/file.rs
diff options
context:
space:
mode:
authorZhen Zhang <izgzhen@gmail.com>2016-06-18 18:14:40 +0800
committerZhen Zhang <izgzhen@gmail.com>2016-07-04 23:02:03 +0800
commit14d68968edc936fe67a226840af4c10ff0aea350 (patch)
tree2d4e1fd6f7e1d4beeaca0f6697b26631d89e8e3b /components/script/dom/file.rs
parent212aa4437e06af72ed3a215a1b49a4b1121f6398 (diff)
downloadservo-14d68968edc936fe67a226840af4c10ff0aea350.tar.gz
servo-14d68968edc936fe67a226840af4c10ff0aea350.zip
Integration and improvements of File API backends
1. More complete origin check in FileManagerThreadMsg 2. Add reference counting logic to file manage store and script API 3. Integrate the support of slicing
Diffstat (limited to 'components/script/dom/file.rs')
-rw-r--r--components/script/dom/file.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/dom/file.rs b/components/script/dom/file.rs
index 86e8888a88f..bfc6b886282 100644
--- a/components/script/dom/file.rs
+++ b/components/script/dom/file.rs
@@ -23,6 +23,7 @@ pub struct File {
}
impl File {
+ #[allow(unrooted_must_root)]
fn new_inherited(blob_impl: BlobImpl, name: DOMString,
modified: Option<i64>, typeString: &str) -> File {
File {
@@ -39,6 +40,7 @@ impl File {
}
}
+ #[allow(unrooted_must_root)]
pub fn new(global: GlobalRef, blob_impl: BlobImpl,
name: DOMString, modified: Option<i64>, typeString: &str) -> Root<File> {
reflect_dom_object(box File::new_inherited(blob_impl, name, modified, typeString),