Reviewed by Hyatt.
authorantti <antti@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Mar 2007 21:28:17 +0000 (21:28 +0000)
committerantti <antti@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Mar 2007 21:28:17 +0000 (21:28 +0000)
commitf9832e26411ec9afe8b523c3a62e833bca685656
tree823fcc7a2cefd8084168db3767e84c753fd0dab4
parent24bad21aac104780bbe119d7d1e218801349e972
    Reviewed by Hyatt.

        Fix <rdar://problem/5092653>
        REGRESSION: Image decoding making scrolling slow

        If decoder gave back a null frame (which I think happens regularly if you don't have full frame
        data yet for image that does not decode incrementally) m_decodedSize was incremented anyway. This
        led to massive growth in calculated image size and eventually made cache prune constantly.

        No test, I don't know how to make one for this.

        * platform/graphics/BitmapImage.cpp:
        (WebCore::BitmapImage::cacheFrame):

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