Bug 58267 - [CG] drawImage with a subimage bleeds pixel data at borders
Summary: [CG] drawImage with a subimage bleeds pixel data at borders
Alias: None
Product: WebKit
Classification: Unclassified
Component: Canvas (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Matthew Delaney
Depends on:
Reported: 2011-04-11 14:13 PDT by Matthew Delaney
Modified: 2011-04-11 15:31 PDT (History)
3 users (show)

See Also:

testcase (2.89 KB, application/zip)
2011-04-11 14:15 PDT, Matthew Delaney
no flags Details
Patch (5.32 KB, patch)
2011-04-11 14:36 PDT, Matthew Delaney
mitz: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Delaney 2011-04-11 14:13:36 PDT
I'm attaching a testcase that shows the issue. It takes a very pixelated small image of white/orange pixels and does a drawImage with a source width/height of 1. The whole canvas should be uniformly one color. It was previously thought that non-"high"/"default" interpolation qualities in CG would not bleed pixel data from the source, but this appears to not be the case.

The fix is to have the useSubImage portion of ImageCG be used all the time. Uploading this patch now.
Comment 1 Matthew Delaney 2011-04-11 14:15:56 PDT
Created attachment 89086 [details]
Comment 2 Matthew Delaney 2011-04-11 14:36:29 PDT
Created attachment 89092 [details]
Comment 3 mitz 2011-04-11 14:48:47 PDT
Comment on attachment 89092 [details]

r=me if you replace the tabs in the test case with spaces
Comment 4 Matthew Delaney 2011-04-11 15:31:20 PDT
Committed r83521: <http://trac.webkit.org/changeset/83521>