Changeset 83521 in webkit


Ignore:
Timestamp:
Apr 11, 2011 3:31:15 PM (13 years ago)
Author:
mdelaney@apple.com
Message:

2011-04-11 Matthew Delaney <mdelaney@apple.com>

Reviewed by Dan Bernstein.

[CG] drawImage with a subimage bleeds pixel data at borders
https://bugs.webkit.org/show_bug.cgi?id=58267

Test: fast/canvas/DrawImageSinglePixelStretch.html

  • platform/graphics/cg/ImageCG.cpp: (WebCore::BitmapImage::draw): Any interpolation quality other than 'none' will graft out the subimage first now.

2011-04-11 Matthew Delaney <mdelaney@apple.com>

Reviewed by Dan Bernstein.

[CG] drawImage with a subimage bleeds pixel data at borders
https://bugs.webkit.org/show_bug.cgi?id=58267

  • fast/canvas/DrawImageSinglePixelStretch.html: Added test case.
  • fast/canvas/resources/orangePixels.gif: Added.
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r83518 r83521  
     12011-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
    1112011-04-11  Chris Marrin  <cmarrin@apple.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r83518 r83521  
     12011-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
    1132011-04-11  Chris Marrin  <cmarrin@apple.com>
    214
  • trunk/Source/WebCore/platform/graphics/cg/ImageCG.cpp

    r83339 r83521  
    200200        // interpolation smoothes sharp edges, causing pixels from outside the source rect to bleed
    201201        // 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());
    203203        float xScale = srcRect.width() / destRect.width();
    204204        float yScale = srcRect.height() / destRect.height();
Note: See TracChangeset for help on using the changeset viewer.