Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(300)

Unified Diff: Source/WebCore/platform/image-decoders/gif/GIFImageReader.cpp

Issue 13578002: Merge 147392 "Simply GIFImageReader error handling" (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1453/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/platform/image-decoders/gif/GIFImageReader.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/platform/image-decoders/gif/GIFImageReader.cpp
===================================================================
--- Source/WebCore/platform/image-decoders/gif/GIFImageReader.cpp (revision 147572)
+++ Source/WebCore/platform/image-decoders/gif/GIFImageReader.cpp (working copy)
@@ -358,10 +358,8 @@
{
ASSERT(m_bytesRead <= m_data->size());
- if (!m_parseFailed && !parse(m_bytesRead, m_data->size() - m_bytesRead, query == GIFImageDecoder::GIFSizeQuery)) {
- m_parseFailed = true;
+ if (!parse(m_bytesRead, m_data->size() - m_bytesRead, query == GIFImageDecoder::GIFSizeQuery))
return false;
- }
if (query != GIFImageDecoder::GIFFullQuery)
return true;
« no previous file with comments | « Source/WebCore/platform/image-decoders/gif/GIFImageReader.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698