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

Unified Diff: third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp

Issue 2618633004: Add support for Animated PNG (Closed)
Patch Set: Reject bad data. Cleanups Created 3 years, 10 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: third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp
diff --git a/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp b/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp
index 52d9298feebe7fe063c31fef52fb0ea9ba93f7c7..396716e4b567525b8645a7ad32decae4e9afb85c 100644
--- a/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp
+++ b/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp
@@ -382,10 +382,12 @@ bool ImageDecoder::initFrameBuffer(size_t frameIndex) {
}
}
+ if (!onInitFrameBuffer(frameIndex))
+ return setFailed();
+
// Update our status to be partially complete.
buffer->setStatus(ImageFrame::FramePartial);
- onInitFrameBuffer(frameIndex);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698