[Webkit-unassigned] [Bug 67652] New: Negative width/heigh values not always treated properly by 2D canvas drawImage
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Sep 6 10:28:39 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=67652
Summary: Negative width/heigh values not always treated
properly by 2D canvas drawImage
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Canvas
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: junov at chromium.org
CC: senorblanco at chromium.org, mdelaney at apple.com
Created an attachment (id=106438)
--> (https://bugs.webkit.org/attachment.cgi?id=106438&action=review)
Test that demonstrates this bug, html part
The 2d canvas drawImage method handles negative source rectangle dimension correctly when the source image is another canvas. When the source is an image object or a video object, rendering fails. The correct behavior, according to the specification, is to take the rectangle bounded by (sx, sy) and (sx+sw, sy+sh). Pixel ordering should _NOT_ be flipped when sw or sh are negative. The current layout tests for this use case only cover canvas to canvas draws (the only path that works correctly). So a new layout test is necessary.
Attached is a tentative layout test that covers the image to canvas draw path. The test should be placed in LayoutTests/fast/canvas
--
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