Changeset 20139 in webkit


Ignore:
Timestamp:
Mar 13, 2007 12:32:07 AM (17 years ago)
Author:
hyatt
Message:

Double the encoded size of images for now. We do this to account for a bug in ImageIO where they hold
a separate copy of image data.

Reviewed by aroben

  • loader/CachedImage.cpp: (WebCore::CachedImage::data):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r20137 r20139  
     12007-03-13  David Hyatt  <hyatt@apple.com>
     2
     3        Double the encoded size of images for now.  We do this to account for a bug in ImageIO where they hold
     4        a separate copy of image data.
     5
     6        Reviewed by aroben
     7
     8        * loader/CachedImage.cpp:
     9        (WebCore::CachedImage::data):
     10
    1112007-03-12  Krzysztof Kowalczyk  <kkowalczyk@gmail.com>
    212
  • trunk/WebCore/loader/CachedImage.cpp

    r20009 r20139  
    226226        if (m_image) {
    227227            Vector<char>& imageBuffer = m_image->dataBuffer();
     228#if PLATFORM(CG)
     229            // ImageIO sources copy the image data.  We will go ahead and count encoded
     230            // size twice until this issue is fixed.  See <rdar://problem/5050645>
     231            setEncodedSize(imageBuffer.size() * 2);
     232#else
    228233            setEncodedSize(imageBuffer.size());
     234#endif
    229235        }
    230236    }
Note: See TracChangeset for help on using the changeset viewer.