Bug 1357295 - Add PARSING_MODE_ALLOW_ALL_NUMERIC_VALUES to force to parse negative values. r=emilio

As per SVG spec [1], we should also parse negative color components values for
SMIL, but currently Gecko does not support it either.

[1] https://www.w3.org/TR/SVG/implnote.html#RangeClamping

MozReview-Commit-ID: FH80zN3jyKh

--HG--
extra : rebase_source : c9b435222ee7e84cb6e84064a62b2b866e75b6eb
This commit is contained in:
Hiroyuki Ikezoe 2017-05-13 19:47:38 +09:00
parent 55f24d5f91
commit 6ac20e3acf

View File

@ -83,6 +83,9 @@ enum class ParsingMode : uint8_t {
// is assumed to be in user units (px).
// https://www.w3.org/TR/SVG/coords.html#Units
AllowUnitlessLength = 1 << 0,
// In SVG, out-of-range values are not treated as an error in parsing.
// https://www.w3.org/TR/SVG/implnote.html#RangeClamping
AllowAllNumericValues = 1 << 1,
};
MOZ_MAKE_ENUM_CLASS_BITWISE_OPERATORS(ParsingMode)