Use JSTraceable everywhere

This commit is contained in:
Manish Goregaokar 2014-09-24 03:01:03 +05:30
parent 85f79290a6
commit cc44a3b064
133 changed files with 325 additions and 278 deletions

View file

@ -26,13 +26,15 @@ use url::Url;
use std::collections::hashmap::HashMap;
#[deriving(PartialEq,Encodable)]
#[deriving(PartialEq)]
#[jstraceable]
pub enum ListenerPhase {
Capturing,
Bubbling,
}
#[deriving(PartialEq,Encodable)]
#[deriving(PartialEq)]
#[jstraceable]
pub enum EventTargetTypeId {
NodeTargetTypeId(NodeTypeId),
WindowTypeId,
@ -41,7 +43,8 @@ pub enum EventTargetTypeId {
XMLHttpRequestTargetTypeId(XMLHttpRequestId)
}
#[deriving(PartialEq, Encodable)]
#[deriving(PartialEq)]
#[jstraceable]
pub enum EventListenerType {
Additive(EventListener),
Inline(EventListener),
@ -55,13 +58,14 @@ impl EventListenerType {
}
}
#[deriving(PartialEq,Encodable)]
#[deriving(PartialEq)]
#[jstraceable]
pub struct EventListenerEntry {
pub phase: ListenerPhase,
pub listener: EventListenerType
}
#[deriving(Encodable)]
#[jstraceable]
#[must_root]
pub struct EventTarget {
pub type_id: EventTargetTypeId,