Changeset 83521 in webkit
- Timestamp:
- Apr 11, 2011 3:31:15 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r83518 r83521 1 2011-04-11 Matthew Delaney <mdelaney@apple.com> 2 3 Reviewed by Dan Bernstein. 4 5 [CG] drawImage with a subimage bleeds pixel data at borders 6 https://bugs.webkit.org/show_bug.cgi?id=58267 7 8 * fast/canvas/DrawImageSinglePixelStretch.html: Added test case. 9 * fast/canvas/resources/orangePixels.gif: Added. 10 1 11 2011-04-11 Chris Marrin <cmarrin@apple.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r83518 r83521 1 2011-04-11 Matthew Delaney <mdelaney@apple.com> 2 3 Reviewed by Dan Bernstein. 4 5 [CG] drawImage with a subimage bleeds pixel data at borders 6 https://bugs.webkit.org/show_bug.cgi?id=58267 7 8 Test: fast/canvas/DrawImageSinglePixelStretch.html 9 10 * platform/graphics/cg/ImageCG.cpp: 11 (WebCore::BitmapImage::draw): Any interpolation quality other than 'none' will graft out the subimage first now. 12 1 13 2011-04-11 Chris Marrin <cmarrin@apple.com> 2 14 -
trunk/Source/WebCore/platform/graphics/cg/ImageCG.cpp
r83339 r83521 200 200 // interpolation smoothes sharp edges, causing pixels from outside the source rect to bleed 201 201 // into the destination rect. See <rdar://problem/6112909>. 202 shouldUseSubimage = (interpolationQuality == kCGInterpolationHigh || interpolationQuality == kCGInterpolationDefault) && (srcRect.size() != destRect.size() || !ctxt->getCTM().isIdentityOrTranslationOrFlipped());202 shouldUseSubimage = (interpolationQuality != kCGInterpolationNone) && (srcRect.size() != destRect.size() || !ctxt->getCTM().isIdentityOrTranslationOrFlipped()); 203 203 float xScale = srcRect.width() / destRect.width(); 204 204 float yScale = srcRect.height() / destRect.height();
Note: See TracChangeset
for help on using the changeset viewer.