-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reject kernelMatrix with 0 width in convolveMatrix CanvasFilters.
Only the height was checked (rejecting `[]` kernels) but kernels with zero width like `[[], []]` were incorrectly accepted. The current CanvasFilter specification is defined by reusing the SVG specification for how the filters attributes work (whatwg/html#6763). For the "feConvolveMatrix" filter, the SVG specification says (https://www.w3.org/TR/SVG11/filters.html#feConvolveMatrixElement): "Attribute definitions: - order = "<number-optional-number>" Indicates the number of cells in each dimension for ‘kernelMatrix’. The values provided must be <integer>s greater than zero. The first number, <orderX>, indicates the number of columns in the matrix. The second number, <orderY>, indicates the number of rows in the matrix. If <orderY> is not provided, it defaults to <orderX>." Change-Id: I23baf05db73e679a52cd9d553d7c6308d91b56f9 Bug: 1428652 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4377066 Reviewed-by: Aaron Krajeski <aaronhk@chromium.org> Commit-Queue: Jean-Philippe Gravel <jpgravel@chromium.org> Cr-Commit-Position: refs/heads/main@{#1124423}
- Loading branch information
Showing
5 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters