2010-10-14 Andreas Kling <kling@webkit.org>
authorandreas.kling@nokia.com <andreas.kling@nokia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 14 Oct 2010 17:45:51 +0000 (17:45 +0000)
committerandreas.kling@nokia.com <andreas.kling@nokia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 14 Oct 2010 17:45:51 +0000 (17:45 +0000)
commit870aab23f23bb1d4bf9a8931f9a2f11d847894fd
tree78d7da2742b3aefe1d2f3b56c784ce04cdb1fa77
parentf666924dd19f5843d4792c3c2d2c1df6af54bcd6
2010-10-14  Andreas Kling  <kling@webkit.org>

        Reviewed by Ariya Hidayat.

        [Qt] Avoid creating empty transparency layers in ImageBuffer::clip()

        We were creating empty layers for sub-1 height/width clips due to
        using IntRect(FloatRect) instead of enclosingIntRect().
        This lead to a bunch of QPainter warnings on the console since you
        can't draw on an empty QPixmap.

        * platform/graphics/qt/ImageBufferQt.cpp:
        (WebCore::ImageBuffer::clip):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@69779 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/platform/graphics/qt/ImageBufferQt.cpp