[Webkit-unassigned] [Bug 202457] Canvas drawImage should not alter the input source or the destination rectangles

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 13 14:43:29 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=202457

Said Abou-Hallawa <sabouhallawa at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|imported/w3c/web-platform-t |Canvas drawImage should not
                   |ests/2dcontext/drawing-imag |alter the input source or
                   |es-to-the-canvas/drawimage_ |the destination rectangles
                   |canvas.html fails some      |
                   |tests on test scenario 9    |

--- Comment #16 from Said Abou-Hallawa <sabouhallawa at apple.com> ---
I think we misinterpreted the specs ttp://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#dom-context-2d-drawimage in our implementation for the canvas drawImage().

I think the specs means we should limit the physical pixel rectangle to the source image rectangle. But it does not mean we can alter the input source rectangle or the input destination rectangle because they are used to scale the image when drawing it to the destination context.

The platform SDK should handle the clipping properly when getting the pixels from the source image and when copying these pixels to the destination context.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240513/b3f5b594/attachment-0001.htm>


More information about the webkit-unassigned mailing list