Permalink
Browse files

Build fix after the pull from master.

  • Loading branch information...
zdobersek committed Oct 10, 2017
1 parent 4e92a5b commit 2460d9e0026339041542089ff7b467199f19393c
Showing with 2 additions and 2 deletions.
  1. +2 −2 Source/WebCore/platform/image-decoders/gif/GIFImageDecoder.cpp
@@ -147,7 +147,7 @@ ImageFrame* GIFImageDecoder::frameBufferAtIndex(size_t index)
ImageFrame& frame = m_frameBufferCache[index];
if (!frame.isComplete()) {
for (auto i = findFirstRequiredFrameToDecode(index); i <= index; i++)
decode(i + 1, GIFFullQuery);
decode(i + 1, GIFFullQuery, isAllDataReceived());
}
return &frame;
@@ -204,7 +204,7 @@ void GIFImageDecoder::clearFrameBufferCache(size_t clearBeforeFrame)
// Now |i| holds the last frame we need to preserve; clear prior frames.
for (Vector<ImageFrame>::iterator j(m_frameBufferCache.begin()); j != i; ++j) {
ASSERT(!j->isPartial());
if (!j->isEmpty())
if (j->isInvalid())
j->clear();
}
}

0 comments on commit 2460d9e

Please sign in to comment.