DescriptionRework the checks for too-few values in feColorMatrix filter.
Revert the prevous fix because it was flat-out wrong for some
filters. Here we add checks at all points the values are used,
because it is impossible to enforce an always-valid m_values vector
inside the FEColorMatrix object.
For example, we need to support any ordering of setAttribute('type', ...)
and setAttribute('values', ...), but the valid number of values depends
on the type. We couldn't set the type from "hueRotate" to "matrix", for
example, without first adding more values than are necessary for the
"hueRotate". That's a bad user experience.
R=fs@opera.com,ed@opera.com,pdr@chromium.org
BUG=468519
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=193911
Patch Set 1 : Correct patch #
Total comments: 12
Patch Set 2 : Review comments and tests! #
Total comments: 4
Patch Set 3 : Better tests #
Total comments: 2
Messages
Total messages: 21 (6 generated)
|