| Index: third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp
|
| diff --git a/third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp b/third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp
|
| index bff97c205e1780f9f60392caac16f80acff9d86d..242450f91413ea826ee62f65b5018407199cb388 100644
|
| --- a/third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp
|
| +++ b/third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp
|
| @@ -415,11 +415,6 @@ void PNGImageDecoder::complete()
|
| m_frameBufferCache[0].setStatus(ImageFrame::FrameComplete);
|
| }
|
|
|
| -inline bool isComplete(const PNGImageDecoder* decoder)
|
| -{
|
| - return decoder->frameIsCompleteAtIndex(0);
|
| -}
|
| -
|
| void PNGImageDecoder::decode(bool onlySize)
|
| {
|
| if (failed())
|
| @@ -434,7 +429,7 @@ void PNGImageDecoder::decode(bool onlySize)
|
| setFailed();
|
|
|
| // If decoding is done or failed, we don't need the PNGImageReader anymore.
|
| - if (isComplete(this) || failed())
|
| + if (frameIsCompleteAtIndex(0) || failed())
|
| m_reader.clear();
|
| }
|
|
|
|
|