aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/testbinding.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/script/dom/testbinding.rs')
-rw-r--r--src/components/script/dom/testbinding.rs18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/components/script/dom/testbinding.rs b/src/components/script/dom/testbinding.rs
index 72d2f68dd88..832cc97e1d7 100644
--- a/src/components/script/dom/testbinding.rs
+++ b/src/components/script/dom/testbinding.rs
@@ -22,7 +22,7 @@ use std::cell::Cell;
#[deriving(Encodable)]
pub struct TestBinding {
pub reflector: Reflector,
- pub window: Cell<JS<Window>>,
+ pub global: Cell<JS<Window>>,
}
pub trait TestBindingMethods {
@@ -279,20 +279,20 @@ pub trait TestBindingMethods {
impl<'a> TestBindingMethods for JSRef<'a, TestBinding> {
fn InterfaceAttribute(&self) -> Temporary<Blob> {
- let window = self.window.get().root();
- Blob::new(&*window)
+ let global = self.global.get().root();
+ Blob::new(&*global)
}
fn GetInterfaceAttributeNullable(&self) -> Option<Temporary<Blob>> {
- let window = self.window.get().root();
- Some(Blob::new(&*window))
+ let global = self.global.get().root();
+ Some(Blob::new(&*global))
}
fn ReceiveInterface(&self) -> Temporary<Blob> {
- let window = self.window.get().root();
- Blob::new(&*window)
+ let global = self.global.get().root();
+ Blob::new(&*global)
}
fn ReceiveNullableInterface(&self) -> Option<Temporary<Blob>> {
- let window = self.window.get().root();
- Some(Blob::new(&*window))
+ let global = self.global.get().root();
+ Some(Blob::new(&*global))
}
}