mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Change the representation of EventPhase to u16.
This matches the IDL definitions.
This commit is contained in:
parent
21a1143dd1
commit
a65a1088a4
1 changed files with 5 additions and 4 deletions
|
@ -20,11 +20,12 @@ use time;
|
|||
|
||||
#[jstraceable]
|
||||
#[derive(Copy)]
|
||||
#[repr(u16)]
|
||||
pub enum EventPhase {
|
||||
None = EventConstants::NONE as int,
|
||||
Capturing = EventConstants::CAPTURING_PHASE as int,
|
||||
AtTarget = EventConstants::AT_TARGET as int,
|
||||
Bubbling = EventConstants::BUBBLING_PHASE as int,
|
||||
None = EventConstants::NONE,
|
||||
Capturing = EventConstants::CAPTURING_PHASE,
|
||||
AtTarget = EventConstants::AT_TARGET,
|
||||
Bubbling = EventConstants::BUBBLING_PHASE,
|
||||
}
|
||||
|
||||
#[derive(PartialEq)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue