Canvas: drawImage should normalize srcRect before checking if it's empty
Created attachment 422321 [details] Patch
commit-queue failed to commit attachment 422321 [details] to WebKit repository. To retry, please set cq+ flag again.
Committed r273986: <https://commits.webkit.org/r273986> All reviewed patches have been landed. Closing bug and clearing flags on attachment 422321 [details].
<rdar://problem/75103972>
Comment on attachment 422321 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=422321&action=review > Source/WebCore/html/canvas/CanvasRenderingContext2DBase.cpp:1697 > + if (!srcBitmapRect.contains(normalizedSrcRect) || !dstRect.width() || !dstRect.height()) Is the rendering correct in all the cases below when srcRect gets normalized? Noting that the code below uses srcRect not normalizedSrcRect.