Bug 1353966 - Part 14: Implement discrete type animation for outline related properties. r?hiro draft
authorDaisuke Akatsuka <dakatsuka@mozilla.com>
Fri, 19 May 2017 11:10:21 +0900
changeset 581004 8d45e2a6562f888f8217f282ca8c6756f0fd6100
parent 581003 67a779c9b50381f74f5c3e9f359c7f828e622dd4
child 581005 a33efedc989f3d9050d2003c9346d531cc5b224e
push id59742
push userbmo:dakatsuka@mozilla.com
push dateFri, 19 May 2017 06:56:54 +0000
reviewershiro
bugs1353966
milestone55.0a1
Bug 1353966 - Part 14: Implement discrete type animation for outline related properties. r?hiro In this patch, implement following outline related property. * outline-style MozReview-Commit-ID: DBmVrGJicyf
servo/components/style/properties/longhand/outline.mako.rs
--- a/servo/components/style/properties/longhand/outline.mako.rs
+++ b/servo/components/style/properties/longhand/outline.mako.rs
@@ -10,17 +10,17 @@
                          additional_methods=[Method("outline_has_nonzero_width", "bool")]) %>
 
 // TODO(pcwalton): `invert`
 ${helpers.predefined_type("outline-color", "CSSColor", "computed::CSSColor::CurrentColor",
                           initial_specified_value="specified::CSSColor::currentcolor()",
                           animation_value_type="IntermediateColor", complex_color=True, need_clone=True,
                           spec="https://drafts.csswg.org/css-ui/#propdef-outline-color")}
 
-<%helpers:longhand name="outline-style" need_clone="True" animation_value_type="none"
+<%helpers:longhand name="outline-style" need_clone="True" animation_value_type="discrete"
                    spec="https://drafts.csswg.org/css-ui/#propdef-outline-style">
 
     use std::fmt;
     use style_traits::ToCss;
     use values::specified::BorderStyle;
     use values::computed::ComputedValueAsSpecified;
 
     pub type SpecifiedValue = Either<Auto, BorderStyle>;