DescriptionMake error-handling for feColorMatrix consistent
After/with https://codereview.chromium.org/1087283002, error-handling
for feColorMatrix will differ based on when the error occured (in
"initial" content, or through later script mutation; "initial" meaning
the state on first paint).
Align the two different code-paths by removing error-handling entirely
from one of them (SVGFEColorMatrixElement::build) building on the CL
mentioned above.
Also take this opportunity to align our error-handling behavior with
Gecko:
* Excess 'values' for type='matrix' => use identity
* Excess 'values' for type='saturate'/'huerotate' => use identity
The test svg/filterS/feColorMatrix-values.svg is updated to reflect the
above, and is converted to a ref-test while at it.
Tweak the DRT output for FEColorMatrix to only output 'values' if they
are valid and actually used.
BUG=534763, 533457
TBR=senorblanco@chromium.org,fmalita@chromium.org
Committed: https://crrev.com/e24b4c8d9dec1cb492d8a3e14d465329dd426a77
Cr-Commit-Position: refs/heads/master@{#350607}
Patch Set 1 #
Total comments: 2
Messages
Total messages: 10 (2 generated)
|