mirror of
https://github.com/servo/servo.git
synced 2025-06-24 00:54:32 +01:00
s/Unrooted/Temporary/g
This commit is contained in:
parent
bbfed38168
commit
522d3f167b
104 changed files with 565 additions and 565 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, 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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue