DescriptionShape Detection: resolve with empty results if any input element's dimension is zero
This CL homogenises the behaviour of the ShapeDetector's
detect() in case of an input element with any zero dimension.
Assuming such input element pass the cross origin test and
its underlying pixel data can be retrieved, then if either width
or height is zero, detect() Promise is resolved with an empty
array.
LayoutTests are adapted/extended/cleaned up.
BUG=674306
Review-Url: https://codereview.chromium.org/2626743002
Cr-Commit-Position: refs/heads/master@{#442737}
Committed: https://chromium.googlesource.com/chromium/src/+/abcbc58fa094efca8d7b46d6b6537c37b0e90e63
Patch Set 1 : #
Messages
Total messages: 17 (11 generated)
|