aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHiroyuki Ikezoe <hiikezoe@mozilla-japan.org>2017-01-06 19:50:20 +0900
committerHiroyuki Ikezoe <hikezoe@mozilla.com>2017-01-10 12:24:59 +0900
commit00b3dda3e57b40fc765d4aaa73e9ff200e389c07 (patch)
tree355c609b94f21446f1a35ba2d483c6183ccf9c3e
parentff1db63922dccd5e82fad4dcafc9244eb6371e25 (diff)
downloadservo-00b3dda3e57b40fc765d4aaa73e9ff200e389c07.tar.gz
servo-00b3dda3e57b40fc765d4aaa73e9ff200e389c07.zip
Add gecko_enum_prefix for animation-direction and animation-fill-mode. r=heycam
-rw-r--r--components/style/properties/longhand/box.mako.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/style/properties/longhand/box.mako.rs b/components/style/properties/longhand/box.mako.rs
index a363e05deb4..c0954cd693f 100644
--- a/components/style/properties/longhand/box.mako.rs
+++ b/components/style/properties/longhand/box.mako.rs
@@ -891,11 +891,14 @@ ${helpers.single_keyword("overflow-x", "visible hidden scroll auto",
impl ComputedValueAsSpecified for SpecifiedValue {}
</%helpers:vector_longhand>
+<% animation_direction_custom_consts = { "alternate-reverse": "Alternate_reverse" } %>
${helpers.single_keyword("animation-direction",
"normal reverse alternate alternate-reverse",
need_index=True,
animatable=False,
vector=True,
+ gecko_enum_prefix="PlaybackDirection",
+ custom_consts=animation_direction_custom_consts,
spec="https://drafts.csswg.org/css-animations/#propdef-animation-direction",
allowed_in_keyframe_block=False)}
@@ -915,6 +918,7 @@ ${helpers.single_keyword("animation-fill-mode",
need_index=True,
animatable=False,
vector=True,
+ gecko_enum_prefix="FillMode",
spec="https://drafts.csswg.org/css-animations/#propdef-animation-fill-mode",
allowed_in_keyframe_block=False)}