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 a189f8104505aafd491d1a17707f087b3fb92063..ab60f2af27df522a1641dab6cb0ca37868a66291 100644 |
--- a/third_party/WebKit/Source/platform/image-decoders/ico/ICOImageDecoder.cpp |
+++ b/third_party/WebKit/Source/platform/image-decoders/ico/ICOImageDecoder.cpp |
@@ -147,7 +147,7 @@ void ICOImageDecoder::decode(size_t index, bool onlySize) |
// 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].getStatus() == ImageFrame::FrameComplete)) { |
+ } else if (frameIsCompleteAtIndex(index)) { |
m_bmpReaders[index].clear(); |
m_pngDecoders[index].clear(); |
} |