Change the representation of EventPhase to u16.

This matches the IDL definitions.
This commit is contained in:
Ms2ger 2015-02-20 14:39:42 +01:00
parent 21a1143dd1
commit a65a1088a4

View file

@ -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)]