From 4108b1b2783c89b5d522e88b72a1d8bd4192fb02 Mon Sep 17 00:00:00 2001 From: Dan Glastonbury Date: Fri, 27 Apr 2018 12:07:20 +1000 Subject: [PATCH] style: Change nscolor to StyleComplexColor in SVG properties. Change mStopColor, mFloodColor, and mLightingColor in nsStyleSVGReset. Bug: 1457353 Reviewed-by: xidorn MozReview-Commit-ID: KMRMtHk1jNK --- components/style/properties/longhand/svg.mako.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/components/style/properties/longhand/svg.mako.rs b/components/style/properties/longhand/svg.mako.rs index 2ec7bcc59a1..6d7bf803f1e 100644 --- a/components/style/properties/longhand/svg.mako.rs +++ b/components/style/properties/longhand/svg.mako.rs @@ -21,8 +21,8 @@ ${helpers.single_keyword("vector-effect", "none non-scaling-stroke", ${helpers.predefined_type( "stop-color", - "RGBAColor", - "RGBA::new(0, 0, 0, 255)", + "Color", + "RGBA::new(0, 0, 0, 255).into()", products="gecko", animation_value_type="AnimatedRGBA", spec="https://www.w3.org/TR/SVGTiny12/painting.html#StopColorProperty", @@ -37,10 +37,10 @@ ${helpers.predefined_type("stop-opacity", "Opacity", "1.0", ${helpers.predefined_type( "flood-color", - "RGBAColor", - "RGBA::new(0, 0, 0, 255)", + "Color", + "RGBA::new(0, 0, 0, 255).into()", products="gecko", - animation_value_type="AnimatedRGBA", + animation_value_type="AnimatedColor", spec="https://www.w3.org/TR/SVG/filters.html#FloodColorProperty", )} @@ -50,10 +50,10 @@ ${helpers.predefined_type("flood-opacity", "Opacity", ${helpers.predefined_type( "lighting-color", - "RGBAColor", - "RGBA::new(255, 255, 255, 255)", + "Color", + "RGBA::new(255, 255, 255, 255).into()", products="gecko", - animation_value_type="AnimatedRGBA", + animation_value_type="AnimatedColor", spec="https://www.w3.org/TR/SVG/filters.html#LightingColorProperty", )}