Fix for partially-specified crop rects.
authorsenorblanco <senorblanco@chromium.org>
Mon, 13 Jul 2015 17:27:05 +0000 (10:27 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 13 Jul 2015 17:27:05 +0000 (10:27 -0700)
commit24d2a7b463d585f9300ceac946431e822531d504
tree512b294e76cdcb5e7b55aa6a5c68023cbd19651c
parent4421a4c90df48931758cdb747d5be80edb56cd12
Fix for partially-specified crop rects.

When only the left or top edge of a crop rect is given, the
right and bottom should be computed based on the incoming width
and height, not based on the crop rect's width & height. This
complies more accurately with SVG semantics.

BUG=240827

Review URL: https://codereview.chromium.org/1232873002
src/core/SkImageFilter.cpp
tests/ImageFilterTest.cpp