Bug 1360133 - stylo: make {stop, flood}-opacity animatable. draft
authorJeremy Chen <jeremychen@mozilla.com>
Fri, 09 Jun 2017 11:50:20 +0800
changeset 591508 36ed8b3e1d5ddf03432fae63cf4d28a3abccdeaf
parent 591486 aa3ad194df6cd7531ebdf5327af3b66ab9ae6027
child 591509 95533da77a0fc5d58a28b0d33bf63147b090bff3
push id63067
push userbmo:jeremychen@mozilla.com
push dateFri, 09 Jun 2017 04:14:51 +0000
bugs1360133
milestone55.0a1
Bug 1360133 - stylo: make {stop, flood}-opacity animatable. MozReview-Commit-ID: GzNs36TjZ4E
servo/components/style/properties/longhand/svg.mako.rs
--- a/servo/components/style/properties/longhand/svg.mako.rs
+++ b/servo/components/style/properties/longhand/svg.mako.rs
@@ -23,30 +23,30 @@
     "stop-color", "RGBAColor",
     "RGBA::new(0, 0, 0, 255)",
     products="gecko",
     animation_value_type="none",
     spec="https://www.w3.org/TR/SVGTiny12/painting.html#StopColorProperty")}
 
 ${helpers.predefined_type("stop-opacity", "Opacity", "1.0",
                           products="gecko",
-                          animation_value_type="none",
+                          animation_value_type="ComputedValue",
                           spec="https://www.w3.org/TR/SVGTiny12/painting.html#propdef-stop-opacity")}
 
 // Section 15 - Filter Effects
 
 ${helpers.predefined_type(
     "flood-color", "RGBAColor",
     "RGBA::new(0, 0, 0, 255)",
     products="gecko",
     animation_value_type="none",
     spec="https://www.w3.org/TR/SVG/filters.html#FloodColorProperty")}
 
 ${helpers.predefined_type("flood-opacity", "Opacity",
-                          "1.0", products="gecko", animation_value_type="none",
+                          "1.0", products="gecko", animation_value_type="ComputedValue",
                           spec="https://www.w3.org/TR/SVG/filters.html#FloodOpacityProperty")}
 
 ${helpers.predefined_type(
     "lighting-color", "RGBAColor",
     "RGBA::new(255, 255, 255, 255)",
     products="gecko",
     animation_value_type="none",
     spec="https://www.w3.org/TR/SVG/filters.html#LightingColorProperty")}