| Index: third_party/WebKit/Source/platform/image-decoders/ico/ICOImageDecoder.cpp
|
| diff --git a/third_party/WebKit/Source/platform/image-decoders/ico/ICOImageDecoder.cpp b/third_party/WebKit/Source/platform/image-decoders/ico/ICOImageDecoder.cpp
|
| index b9b17619d3bc2e6a16a49f89c3ec48aa8eefec75..592eb969c1de191be135ee487f46fafee570d2fe 100644
|
| --- a/third_party/WebKit/Source/platform/image-decoders/ico/ICOImageDecoder.cpp
|
| +++ b/third_party/WebKit/Source/platform/image-decoders/ico/ICOImageDecoder.cpp
|
| @@ -142,12 +142,12 @@ void ICOImageDecoder::decode(size_t index, bool onlySize)
|
|
|
| // If we couldn't decode the image but we've received all the data, decoding
|
| // has failed.
|
| - if ((!decodeDirectory() || (!onlySize && !decodeAtIndex(index))) && isAllDataReceived())
|
| + if ((!decodeDirectory() || (!onlySize && !decodeAtIndex(index))) && isAllDataReceived()) {
|
| setFailed();
|
| // If we're done decoding this frame, we don't need the BMPImageReader or
|
| // PNGImageDecoder anymore. (If we failed, these have already been
|
| // cleared.)
|
| - else if ((m_frameBufferCache.size() > index) && (m_frameBufferCache[index].status() == ImageFrame::FrameComplete)) {
|
| + } else if ((m_frameBufferCache.size() > index) && (m_frameBufferCache[index].getStatus() == ImageFrame::FrameComplete)) {
|
| m_bmpReaders[index].clear();
|
| m_pngDecoders[index].clear();
|
| }
|
|
|