mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Use JSTraceable everywhere
This commit is contained in:
parent
85f79290a6
commit
cc44a3b064
133 changed files with 325 additions and 278 deletions
|
@ -51,10 +51,11 @@ use std::rc::Rc;
|
|||
use std::time::duration::Duration;
|
||||
use time;
|
||||
|
||||
#[deriving(PartialEq, Encodable, Eq)]
|
||||
#[deriving(PartialEq, Eq)]
|
||||
#[jstraceable]
|
||||
pub struct TimerId(i32);
|
||||
|
||||
#[deriving(Encodable)]
|
||||
#[jstraceable]
|
||||
pub struct TimerHandle {
|
||||
handle: TimerId,
|
||||
pub data: TimerData,
|
||||
|
@ -74,7 +75,7 @@ impl TimerHandle {
|
|||
}
|
||||
}
|
||||
|
||||
#[deriving(Encodable)]
|
||||
#[jstraceable]
|
||||
#[must_root]
|
||||
pub struct Window {
|
||||
eventtarget: EventTarget,
|
||||
|
@ -121,7 +122,7 @@ impl Drop for Window {
|
|||
// Holder for the various JS values associated with setTimeout
|
||||
// (ie. function value to invoke and all arguments to pass
|
||||
// to the function when calling it)
|
||||
#[deriving(Encodable)]
|
||||
#[jstraceable]
|
||||
pub struct TimerData {
|
||||
pub is_interval: bool,
|
||||
pub funval: Traceable<JSVal>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue