Changeset 429 for trunk/WebCore/platform/graphics/cg/ImageCG.cpp
- Timestamp:
- 08/04/08 12:23:14 (5 months ago)
- Files:
-
- trunk/WebCore/platform/graphics/cg/ImageCG.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/WebCore/platform/graphics/cg/ImageCG.cpp
r427 r429 154 154 if (srcRect.size() != selfSize) { 155 155 CGInterpolationQuality interpolationQuality = CGContextGetInterpolationQuality(context); 156 // When the image is scaled, we create a temporary CGImage containing only the portion 157 // we want to display, to work around <rdar://problem/6112909>. 156 // When the image is scaled using high-quality interpolation, we create a temporary CGImage 157 // containing only the portion we want to display. We need to do this because high-quality 158 // interpolation smoothes sharp edges, causing pixels from outside the source rect to bleed 159 // into the destination rect. See <rdar://problem/6112909>. 158 160 shouldUseSubimage = (interpolationQuality == kCGInterpolationHigh || interpolationQuality == kCGInterpolationDefault) && srcRect.size() != destRect.size(); 159 161 if (shouldUseSubimage) {
