mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
parent
e958d92be6
commit
4cf46bff2d
51 changed files with 97 additions and 137 deletions
|
@ -36,15 +36,13 @@ use url::Url;
|
|||
|
||||
use std::collections::HashMap;
|
||||
|
||||
#[derive(Copy, Clone, PartialEq)]
|
||||
#[jstraceable]
|
||||
#[derive(JSTraceable, Copy, Clone, PartialEq)]
|
||||
pub enum ListenerPhase {
|
||||
Capturing,
|
||||
Bubbling,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone)]
|
||||
#[jstraceable]
|
||||
#[derive(JSTraceable, Copy, Clone)]
|
||||
pub enum EventTargetTypeId {
|
||||
Node(NodeTypeId),
|
||||
WebSocket,
|
||||
|
@ -90,8 +88,7 @@ impl EventTargetTypeId {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, PartialEq)]
|
||||
#[jstraceable]
|
||||
#[derive(JSTraceable, Clone, PartialEq)]
|
||||
pub enum EventListenerType {
|
||||
Additive(Rc<EventListener>),
|
||||
Inline(Rc<EventListener>),
|
||||
|
@ -106,8 +103,7 @@ impl EventListenerType {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, PartialEq)]
|
||||
#[jstraceable]
|
||||
#[derive(JSTraceable, Clone, PartialEq)]
|
||||
#[privatize]
|
||||
pub struct EventListenerEntry {
|
||||
phase: ListenerPhase,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue