Show
Ignore:
Timestamp:
08/04/08 12:23:14 (5 months ago)
Author:
mbensi
Message:

merge with webkit revision 35534

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/WebCore/platform/graphics/cg/ImageCG.cpp

    r427 r429  
    154154    if (srcRect.size() != selfSize) { 
    155155        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>. 
    158160        shouldUseSubimage = (interpolationQuality == kCGInterpolationHigh || interpolationQuality == kCGInterpolationDefault) && srcRect.size() != destRect.size(); 
    159161        if (shouldUseSubimage) {