aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/blob.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2014-04-17 17:08:00 -0400
committerJosh Matthews <josh@joshmatthews.net>2014-05-03 14:18:31 -0400
commit522d3f167b12fa79401eea5525c7b6133cae0f06 (patch)
treee6c187b470348455fc53667e1af9fb4acf9b10f1 /src/components/script/dom/blob.rs
parentbbfed381686aef5703da53a104f9c05c6d3475c5 (diff)
downloadservo-522d3f167b12fa79401eea5525c7b6133cae0f06.tar.gz
servo-522d3f167b12fa79401eea5525c7b6133cae0f06.zip
s/Unrooted/Temporary/g
Diffstat (limited to 'src/components/script/dom/blob.rs')
-rw-r--r--src/components/script/dom/blob.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/components/script/dom/blob.rs b/src/components/script/dom/blob.rs
index a40715f00f2..10cc93ef089 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, Unrooted};
+use dom::bindings::js::{JS, JSRef, RootCollection, Temporary};
use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};
use dom::bindings::error::Fallible;
use dom::bindings::codegen::BindingDeclarations::BlobBinding;
@@ -23,13 +23,13 @@ impl Blob {
}
}
- pub fn new(window: &JSRef<Window>) -> Unrooted<Blob> {
+ pub fn new(window: &JSRef<Window>) -> Temporary<Blob> {
reflect_dom_object(~Blob::new_inherited(window.unrooted()),
window,
BlobBinding::Wrap)
}
- pub fn Constructor(window: &JSRef<Window>) -> Fallible<Unrooted<Blob>> {
+ pub fn Constructor(window: &JSRef<Window>) -> Fallible<Temporary<Blob>> {
Ok(Blob::new(window))
}
}
@@ -37,7 +37,7 @@ impl Blob {
pub trait BlobMethods {
fn Size(&self) -> u64;
fn Type(&self) -> DOMString;
- fn Slice(&self, _start: Option<i64>, _end: Option<i64>, _contentType: Option<DOMString>) -> Unrooted<Blob>;
+ fn Slice(&self, _start: Option<i64>, _end: Option<i64>, _contentType: Option<DOMString>) -> Temporary<Blob>;
fn Close(&self);
}
@@ -50,7 +50,7 @@ impl<'a> BlobMethods for JSRef<'a, Blob> {
~""
}
- fn Slice(&self, _start: Option<i64>, _end: Option<i64>, _contentType: Option<DOMString>) -> Unrooted<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);
Blob::new(&window.root_ref())