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

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

Issue 813943003: Fix handling of broken GIFs with weird frame sizes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: comments Created 5 years, 11 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
Index: Source/platform/image-decoders/gif/GIFImageReader.h
diff --git a/Source/platform/image-decoders/gif/GIFImageReader.h b/Source/platform/image-decoders/gif/GIFImageReader.h
index 366a2cef1c9d501fabc98dcc9af687feb4973505..72b4a1e225e7ed73d754bf7fba5016845fbb249b 100644
--- a/Source/platform/image-decoders/gif/GIFImageReader.h
+++ b/Source/platform/image-decoders/gif/GIFImageReader.h
@@ -286,6 +286,7 @@ public:
, m_version(0)
, m_screenWidth(0)
, m_screenHeight(0)
+ , m_sentSizeToClient(false)
, m_loopCount(cLoopCountNotSeen)
, m_parseCompleted(false)
{
@@ -351,6 +352,7 @@ private:
int m_version; // Either 89 for GIF89 or 87 for GIF87.
unsigned m_screenWidth; // Logical screen width & height.
unsigned m_screenHeight;
+ bool m_sentSizeToClient;
GIFColorMap m_globalColorMap;
int m_loopCount; // Netscape specific extension block to control the number of animation loops a GIF renders.
« no previous file with comments | « Source/platform/image-decoders/gif/GIFImageDecoderTest.cpp ('k') | Source/platform/image-decoders/gif/GIFImageReader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698