WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
18779
REGRESSION(31916-31981): CanvasRenderingContext2D::drawImage no longer respects the srcRect
https://bugs.webkit.org/show_bug.cgi?id=18779
Summary
REGRESSION(31916-31981): CanvasRenderingContext2D::drawImage no longer respec...
Oliver Hunt
Reported
2008-04-28 02:45:14 PDT
While trying to find the cause of another bug i found that we no longer drawImage correctly in the Canvas The issue appears to be that we no longer respect the srcRect (or at least not correctly) My money's on
http://trac.webkit.org/changeset/31961
Attachments
Test case
(588 bytes, text/html)
2008-04-28 02:50 PDT
,
Oliver Hunt
no flags
Details
Fix the argument reversal.
(554 bytes, patch)
2008-04-28 10:42 PDT
,
Dave Hyatt
timothy
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Oliver Hunt
Comment 1
2008-04-28 02:50:49 PDT
Created
attachment 20863
[details]
Test case This test case uses two canvases, in the invisible rect it draws a green square on a red background. It then draws the portion of that canvas into the other canvas, scaled to fill the entire canvas. In
r31916
and before this works correctly, now the resultant image is a scaled down copy almost as though dst and src rects were reversed, although a quick tour down debugging lane would seem to imply that that is not the case. In fact it would appear that it may be Image::draw that is not handling the scaling correctly.
Dave Hyatt
Comment 2
2008-04-28 10:42:30 PDT
Created
attachment 20871
[details]
Fix the argument reversal. Will land test case from bug.
Dave Hyatt
Comment 3
2008-04-28 11:18:48 PDT
Fixed in
r32651
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug