Changeset 70758 in webkit
- Timestamp:
- Oct 28, 2010 1:21:48 AM (13 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r70757 r70758 1 2010-10-28 Pascal Massimino <pascal.massimino@gmail.com> 2 3 Reviewed by Adam Barth. 4 5 fix setSize() call flow: it was only called the first 6 time (when onlySize is true) 7 Bug URL: https://bugs.webkit.org/show_bug.cgi?id=48494 8 9 Testing: difficult to exercise the bug, as it requires 10 some manual flow (change tab, scroll,...) 11 12 * platform/image-decoders/webp/WEBPImageDecoder.cpp: 13 (WebCore::WEBPImageDecoder::decode): 14 fix: call setSize() even when onlySize is false 15 1 16 2010-10-28 Andy Estes <aestes@apple.com> 2 17 -
trunk/WebCore/platform/image-decoders/webp/WEBPImageDecoder.cpp
r70392 r70758 87 87 if (!WebPGetInfo(dataBytes, dataSize, &width, &height)) 88 88 return setFailed(); 89 if (!ImageDecoder::isSizeAvailable() && !setSize(width, height)) 90 return setFailed(); 89 91 if (onlySize) 90 return setSize(width, height) || setFailed();92 return true; 91 93 92 94 // FIXME: Add support for progressive decoding. 93 95 if (!isAllDataReceived()) 94 96 return true; 95 if (m_frameBufferCache.isEmpty()) 96 return true; 97 ASSERT(!m_frameBufferCache.isEmpty()); 97 98 RGBA32Buffer& buffer = m_frameBufferCache[0]; 98 99 if (buffer.status() == RGBA32Buffer::FrameEmpty) {
Note: See TracChangeset
for help on using the changeset viewer.