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] #[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)]