mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Remove Traceable/Untraceable from window.rs
This commit is contained in:
parent
a8f96ddfb2
commit
22567762a0
4 changed files with 30 additions and 23 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue