aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/windowproxy.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/script/dom/windowproxy.rs')
-rw-r--r--src/components/script/dom/windowproxy.rs18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/components/script/dom/windowproxy.rs b/src/components/script/dom/windowproxy.rs
index 235facca913..b5ff91f1c0d 100644
--- a/src/components/script/dom/windowproxy.rs
+++ b/src/components/script/dom/windowproxy.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::utils::{Reflectable, Reflector, BindingObject};
+use dom::bindings::utils::{Reflectable, Reflector};
use script_task::page_from_context;
use js::jsapi::{JSContext, JSObject};
@@ -23,15 +23,6 @@ impl WindowProxy {
}
}
-impl BindingObject for WindowProxy {
- fn GetParentObject(&self, cx: *JSContext) -> Option<@mut Reflectable> {
- let page = page_from_context(cx);
- unsafe {
- Some((*page).frame.get_ref().window as @mut Reflectable)
- }
- }
-}
-
impl Reflectable for WindowProxy {
fn reflector<'a>(&'a self) -> &'a Reflector {
&self.reflector_
@@ -44,4 +35,11 @@ impl Reflectable for WindowProxy {
fn wrap_object_shared(@mut self, _cx: *JSContext, _scope: *JSObject) -> *JSObject {
fail!("not yet implemented")
}
+
+ fn GetParentObject(&self, cx: *JSContext) -> Option<@mut Reflectable> {
+ let page = page_from_context(cx);
+ unsafe {
+ Some((*page).frame.get_ref().window as @mut Reflectable)
+ }
+ }
}