Commit b4e9464e authored by yong.li@torchmobile.com's avatar yong.li@torchmobile.com
Browse files

2010-01-06 Yong Li <yoli@rim.com>

        Reviewed by Darin Adler.

        Fix the bug in previous commit: we shouldn't finish
        decoding if "sizeOnly" is true.
        https://bugs.webkit.org/show_bug.cgi?id=33258

        * platform/image-decoders/png/PNGImageDecoder.cpp:
        (WebCore::PNGImageReader::decode):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52862 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 8651d0fa
2010-01-06 Yong Li <yoli@rim.com>
Reviewed by Darin Adler.
Fix the bug in previous commit: we shouldn't finish
decoding if "sizeOnly" is true.
https://bugs.webkit.org/show_bug.cgi?id=33258
* platform/image-decoders/png/PNGImageDecoder.cpp:
(WebCore::PNGImageReader::decode):
2010-01-06 Eric Seidel <eric@webkit.org>
 
No review, rolling out r52855.
......@@ -119,7 +119,7 @@ public:
m_currentBufferSize = m_readOffset;
png_process_data(m_png, m_info, reinterpret_cast<png_bytep>(const_cast<char*>(segment)), segmentLength);
if ((sizeOnly && decoder->isSizeAvailable()) || m_hasFinishedDecoding)
break;
return;
}
if (!m_hasFinishedDecoding && decoder->isAllDataReceived())
decoder->pngComplete();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment