From 8912a594c7dab237c9de781c804c2c6db2eb5d77 Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Tue, 6 Jun 2017 00:46:58 +0200 Subject: [PATCH] Use predefined_type for animation-timing-function --- .../style/properties/longhand/box.mako.rs | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/components/style/properties/longhand/box.mako.rs b/components/style/properties/longhand/box.mako.rs index 1d08c759853..7803e182fe1 100644 --- a/components/style/properties/longhand/box.mako.rs +++ b/components/style/properties/longhand/box.mako.rs @@ -528,18 +528,16 @@ ${helpers.predefined_type("animation-duration", extra_prefixes="moz webkit", spec="https://drafts.csswg.org/css-transitions/#propdef-transition-duration")} -<%helpers:vector_longhand name="animation-timing-function" - need_index="True" +${helpers.predefined_type("animation-timing-function", + "TimingFunction", + "computed::TimingFunction::ease()", + initial_specified_value="specified::TimingFunction::ease()", + vector=True, + need_index=True, animation_value_type="none", - extra_prefixes="moz webkit" - spec="https://drafts.csswg.org/css-animations/#propdef-animation-timing-function", - allowed_in_keyframe_block="True"> - pub use properties::longhands::transition_timing_function::single_value::computed_value; - pub use properties::longhands::transition_timing_function::single_value::get_initial_value; - pub use properties::longhands::transition_timing_function::single_value::get_initial_specified_value; - pub use properties::longhands::transition_timing_function::single_value::parse; - pub use properties::longhands::transition_timing_function::single_value::SpecifiedValue; - + extra_prefixes="moz webkit", + allowed_in_keyframe_block=True, + spec="https://drafts.csswg.org/css-transitions/#propdef-animation-timing-function")} <%helpers:vector_longhand name="animation-iteration-count" need_index="True"