Bug 1244166 - Don't ignore stroke/fill properties in high-contrast mode, since doing so can produce icons that are invisible or whose colors are unrelated to the user's chosen high-contrast colors. r=longsonr, a=lizzard
Bug 1244166 - Don't ignore stroke/fill properties in high-contrast mode, since doing so can produce icons that are invisible or whose colors are unrelated to the user's chosen high-contrast colors. r=longsonr, a=lizzard
--- a/layout/style/nsCSSPropList.h
+++ b/layout/style/nsCSSPropList.h
@@ -3955,18 +3955,17 @@ CSS_PROP_SVGRESET(
VARIANT_HK,
kDominantBaselineKTable,
offsetof(nsStyleSVGReset, mDominantBaseline),
eStyleAnimType_EnumU8)
CSS_PROP_SVG(
fill,
fill,
Fill,
- CSS_PROPERTY_PARSE_FUNCTION |
- CSS_PROPERTY_IGNORED_WHEN_COLORS_DISABLED,
+ CSS_PROPERTY_PARSE_FUNCTION,
"",
0,
kContextPatternKTable,
offsetof(nsStyleSVG, mFill),
eStyleAnimType_PaintServer)
CSS_PROP_SVG(
fill-opacity,
fill_opacity,
@@ -4125,18 +4124,17 @@ CSS_PROP_SVGRESET(
VARIANT_HN,
nullptr,
offsetof(nsStyleSVGReset, mStopOpacity),
eStyleAnimType_float)
CSS_PROP_SVG(
stroke,
stroke,
Stroke,
- CSS_PROPERTY_PARSE_FUNCTION |
- CSS_PROPERTY_IGNORED_WHEN_COLORS_DISABLED,
+ CSS_PROPERTY_PARSE_FUNCTION,
"",
0,
kContextPatternKTable,
offsetof(nsStyleSVG, mStroke),
eStyleAnimType_PaintServer)
CSS_PROP_SVG(
stroke-dasharray,
stroke_dasharray,