aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2015-02-20 14:39:42 +0100
committerMs2ger <ms2ger@gmail.com>2015-02-20 14:45:46 +0100
commita65a1088a44f8fea8b3df0abba5edb3cf16aafc7 (patch)
tree7c6826eeb74fb3b39c2c96eb3675c467148fe807
parent21a1143dd155d9fed2a5158e6e50f055365529e3 (diff)
downloadservo-a65a1088a44f8fea8b3df0abba5edb3cf16aafc7.tar.gz
servo-a65a1088a44f8fea8b3df0abba5edb3cf16aafc7.zip
Change the representation of EventPhase to u16.
This matches the IDL definitions.
-rw-r--r--components/script/dom/event.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/components/script/dom/event.rs b/components/script/dom/event.rs
index 7c9d73675d1..eae43afe9c2 100644
--- a/components/script/dom/event.rs
+++ b/components/script/dom/event.rs
@@ -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)]