mirror of
https://github.com/servo/servo.git
synced 2025-07-26 00:30:22 +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]
|
#[jstraceable]
|
||||||
#[derive(Copy)]
|
#[derive(Copy)]
|
||||||
|
#[repr(u16)]
|
||||||
pub enum EventPhase {
|
pub enum EventPhase {
|
||||||
None = EventConstants::NONE as int,
|
None = EventConstants::NONE,
|
||||||
Capturing = EventConstants::CAPTURING_PHASE as int,
|
Capturing = EventConstants::CAPTURING_PHASE,
|
||||||
AtTarget = EventConstants::AT_TARGET as int,
|
AtTarget = EventConstants::AT_TARGET,
|
||||||
Bubbling = EventConstants::BUBBLING_PHASE as int,
|
Bubbling = EventConstants::BUBBLING_PHASE,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(PartialEq)]
|
#[derive(PartialEq)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue