[Webkit-unassigned] [Bug 67652] Negative width/height values not always treated properly by 2D canvas drawImage

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 30 13:26:53 PDT 2013


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





--- Comment #27 from Justin Novosad <junov at google.com>  2013-07-30 13:26:38 PST ---
(In reply to comment #26)
> Please use the attached "testLetEdgeClipWithMickey.html" and "Mickey_Mouse.png" to test the required behavior when left edge of srcRect(argument for canvas-drawImage) is not inside the source-image-rect.
> 
> Currently, on all the browsers, drawImage() does not draw anything on the destination-canvas, if the srcRect is not completely inside the source-image-rect.

Not true.
Firefox does right thing, and Blink was just recently fixed to comply with the spec. The spec says that the source rectangle must be clipped to the bounds of the source image and the destination rectangle must be clipped proportionately.

Here is the Blink patch that does just that: https://src.chromium.org/viewvc/blink?revision=154798

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list