| Index: third_party/WebKit/Source/platform/image-decoders/png/PNGImageReader.cpp
|
| diff --git a/third_party/WebKit/Source/platform/image-decoders/png/PNGImageReader.cpp b/third_party/WebKit/Source/platform/image-decoders/png/PNGImageReader.cpp
|
| index ccfd5fcd211ba2571fc51718cd0fef3552fc1dc9..38c76056bc866db107e2fdfb8f692f3d009ab334 100644
|
| --- a/third_party/WebKit/Source/platform/image-decoders/png/PNGImageReader.cpp
|
| +++ b/third_party/WebKit/Source/platform/image-decoders/png/PNGImageReader.cpp
|
| @@ -534,6 +534,9 @@ bool PNGImageReader::parseSize(const FastSharedBufferReader& reader) {
|
| m_isAnimated = false;
|
| if (!m_isAnimated || 1 == m_reportedFrameCount)
|
| m_decoder->setRepetitionCount(cAnimationNone);
|
| + if (!m_decoder->setSize(m_width, m_height))
|
| + return false;
|
| + m_decoder->setColorSpace();
|
| m_decoder->headerAvailable();
|
| return true;
|
| }
|
|
|