style: Change nscolor to StyleComplexColor in SVG properties.

Change mStopColor, mFloodColor, and mLightingColor in nsStyleSVGReset.

Bug: 1457353
Reviewed-by: xidorn
MozReview-Commit-ID: KMRMtHk1jNK
This commit is contained in:
Dan Glastonbury 2018-04-27 12:07:20 +10:00 committed by Emilio Cobos Álvarez
parent 0bfd1dc5c0
commit 4108b1b278
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -21,8 +21,8 @@ ${helpers.single_keyword("vector-effect", "none non-scaling-stroke",
${helpers.predefined_type( ${helpers.predefined_type(
"stop-color", "stop-color",
"RGBAColor", "Color",
"RGBA::new(0, 0, 0, 255)", "RGBA::new(0, 0, 0, 255).into()",
products="gecko", products="gecko",
animation_value_type="AnimatedRGBA", animation_value_type="AnimatedRGBA",
spec="https://www.w3.org/TR/SVGTiny12/painting.html#StopColorProperty", 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( ${helpers.predefined_type(
"flood-color", "flood-color",
"RGBAColor", "Color",
"RGBA::new(0, 0, 0, 255)", "RGBA::new(0, 0, 0, 255).into()",
products="gecko", products="gecko",
animation_value_type="AnimatedRGBA", animation_value_type="AnimatedColor",
spec="https://www.w3.org/TR/SVG/filters.html#FloodColorProperty", spec="https://www.w3.org/TR/SVG/filters.html#FloodColorProperty",
)} )}
@ -50,10 +50,10 @@ ${helpers.predefined_type("flood-opacity", "Opacity",
${helpers.predefined_type( ${helpers.predefined_type(
"lighting-color", "lighting-color",
"RGBAColor", "Color",
"RGBA::new(255, 255, 255, 255)", "RGBA::new(255, 255, 255, 255).into()",
products="gecko", products="gecko",
animation_value_type="AnimatedRGBA", animation_value_type="AnimatedColor",
spec="https://www.w3.org/TR/SVG/filters.html#LightingColorProperty", spec="https://www.w3.org/TR/SVG/filters.html#LightingColorProperty",
)} )}