aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/blob.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2014-04-17 23:26:42 -0400
committerJosh Matthews <josh@joshmatthews.net>2014-05-03 14:18:31 -0400
commit7b3e6d1f2125faf598919722b72cc56197d0102c (patch)
treebc5a2f34b3d5924e49fb586bcfbb7b022758093c /src/components/script/dom/blob.rs
parentaaf0a6119414072b34e3ef2109827eaf2f2a3156 (diff)
downloadservo-7b3e6d1f2125faf598919722b72cc56197d0102c.tar.gz
servo-7b3e6d1f2125faf598919722b72cc56197d0102c.zip
Remove all root collections.
Diffstat (limited to 'src/components/script/dom/blob.rs')
-rw-r--r--src/components/script/dom/blob.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/components/script/dom/blob.rs b/src/components/script/dom/blob.rs
index 10cc93ef089..9df9287bc9f 100644
--- a/src/components/script/dom/blob.rs
+++ b/src/components/script/dom/blob.rs
@@ -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, RootCollection, Temporary};
+use dom::bindings::js::{JS, JSRef, Temporary};
use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};
use dom::bindings::error::Fallible;
use dom::bindings::codegen::BindingDeclarations::BlobBinding;
@@ -51,8 +51,7 @@ impl<'a> BlobMethods for JSRef<'a, Blob> {
}
fn Slice(&self, _start: Option<i64>, _end: Option<i64>, _contentType: Option<DOMString>) -> Temporary<Blob> {
- let roots = RootCollection::new();
- let window = self.window.root(&roots);
+ let window = self.window.root();
Blob::new(&window.root_ref())
}