| Index: third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp
|
| diff --git a/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp b/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp
|
| index 22113622bbdf8970c25b35660d93a5b8dc9b0f4a..a2d98ffdc191e1375027bbd7d9aad8f71f847cdb 100644
|
| --- a/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp
|
| +++ b/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp
|
| @@ -335,12 +335,12 @@ void GIFImageDecoder::decode(size_t index) {
|
| return;
|
| }
|
|
|
| - if (m_purgeAggressively)
|
| - clearCacheExceptFrame(*i);
|
| -
|
| // We need more data to continue decoding.
|
| if (m_frameBufferCache[*i].getStatus() != ImageFrame::FrameComplete)
|
| break;
|
| +
|
| + if (m_purgeAggressively)
|
| + clearCacheExceptFrame(*i);
|
| }
|
|
|
| // It is also a fatal error if all data is received and we have decoded all
|
|
|