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; |
} |