Changeset 77945 in webkit


Ignore:
Timestamp:
Feb 8, 2011 9:05:50 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-02-08 George Wright <gwright@rim.com>

Reviewed by Darin Adler.

https://bugs.webkit.org/show_bug.cgi?id=53951

Ensure we do not pass (-1, -1) sized rects to ImageBuffer but instead
pass the full image dimensions.

  • platform/graphics/GraphicsContext.cpp: (WebCore::GraphicsContext::drawImageBuffer):
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r77944 r77945  
     12011-02-08  George Wright  <gwright@rim.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=53951
     6
     7        Ensure we do not pass (-1, -1) sized rects to ImageBuffer but instead
     8        pass the full image dimensions.
     9
     10        * platform/graphics/GraphicsContext.cpp:
     11        (WebCore::GraphicsContext::drawImageBuffer):
     12
    1132011-02-08  Patrick Gansterer  <paroga@webkit.org>
    214
  • trunk/Source/WebCore/platform/graphics/GraphicsContext.cpp

    r77110 r77945  
    545545        // FIXME: Should be InterpolationLow
    546546        setImageInterpolationQuality(InterpolationNone);
    547         image->draw(this, styleColorSpace, dest, src, op, useLowQualityScale);
     547        image->draw(this, styleColorSpace, FloatRect(dest.location(), FloatSize(tw, th)), FloatRect(src.location(), FloatSize(tsw, tsh)), op, useLowQualityScale);
    548548        setImageInterpolationQuality(previousInterpolationQuality);
    549549    } else
    550         image->draw(this, styleColorSpace, dest, src, op, useLowQualityScale);
     550        image->draw(this, styleColorSpace, FloatRect(dest.location(), FloatSize(tw, th)), FloatRect(src.location(), FloatSize(tsw, tsh)), op, useLowQualityScale);
    551551}
    552552
Note: See TracChangeset for help on using the changeset viewer.