aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/browsercontext.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/browsercontext.rs
parentbbfed381686aef5703da53a104f9c05c6d3475c5 (diff)
downloadservo-522d3f167b12fa79401eea5525c7b6133cae0f06.tar.gz
servo-522d3f167b12fa79401eea5525c7b6133cae0f06.zip
s/Unrooted/Temporary/g
Diffstat (limited to 'src/components/script/dom/browsercontext.rs')
-rw-r--r--src/components/script/dom/browsercontext.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/components/script/dom/browsercontext.rs b/src/components/script/dom/browsercontext.rs
index 4a452ccd2ae..5b0be5ccf0c 100644
--- a/src/components/script/dom/browsercontext.rs
+++ b/src/components/script/dom/browsercontext.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, Unrooted, RootCollection};
+use dom::bindings::js::{JS, JSRef, Temporary, RootCollection};
use dom::bindings::trace::Traceable;
use dom::bindings::utils::Reflectable;
use dom::document::Document;
@@ -32,14 +32,14 @@ impl BrowserContext {
context
}
- pub fn active_document(&self) -> Unrooted<Document> {
- Unrooted::new(self.history.get(self.active_index).document.clone())
+ pub fn active_document(&self) -> Temporary<Document> {
+ Temporary::new(self.history.get(self.active_index).document.clone())
}
- pub fn active_window(&self) -> Unrooted<Window> {
+ pub fn active_window(&self) -> Temporary<Window> {
let roots = RootCollection::new();
let doc = self.active_document().root(&roots);
- Unrooted::new(doc.deref().window.clone())
+ Temporary::new(doc.deref().window.clone())
}
pub fn window_proxy(&self) -> *JSObject {