Remove Traceable/Untraceable from window.rs

This commit is contained in:
Manish Goregaokar 2014-09-29 06:01:13 +05:30
parent a8f96ddfb2
commit 22567762a0
4 changed files with 30 additions and 23 deletions

View file

@ -49,6 +49,7 @@ use http::headers::response::HeaderCollection as ResponseHeaderCollection;
use http::headers::request::HeaderCollection as RequestHeaderCollection;
use http::method::Method;
use std::io::timer::Timer;
use servo_msg::compositor_msg::ScriptListener;
impl<T: Reflectable> JSTraceable for JS<T> {
fn trace(&self, trc: *mut JSTracer) {
@ -256,3 +257,10 @@ impl<A,B> JSTraceable for fn(A) -> B {
// Do nothing
}
}
impl JSTraceable for Box<ScriptListener+'static> {
#[inline]
fn trace(&self, _: *mut JSTracer) {
// Do nothing
}
}

View file

@ -659,7 +659,7 @@ pub extern fn outerize_global(_cx: *mut JSContext, obj: JSHandleObject) -> *mut
IDLInterface::get_prototype_depth(None::<window::Window>))
.unwrap()
.root();
win.deref().browser_context.deref().borrow().as_ref().unwrap().window_proxy()
win.deref().browser_context.borrow().as_ref().unwrap().window_proxy()
}
}