| 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 d444caa0bf644e481d7a9f15e3952de5ec2c4397..7480476385b2bceaeece50f491837dde8bf5d2cb 100644
|
| --- a/third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp
|
| +++ b/third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp
|
| @@ -424,11 +424,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())
|
| @@ -443,7 +438,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.reset();
|
| }
|
|
|
|
|