| Index: third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp b/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
|
| index c361c5b307450c79d0bae24ff1cb89d6563ec282..bbd35a5c1b363c05e779d3276030a83114dfa944 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
|
| @@ -198,7 +198,11 @@ bool BitmapImage::setData(PassRefPtr<SharedBuffer> data, bool allDataReceived)
|
| if (!length)
|
| return true;
|
|
|
| - m_source.setData(*data, allDataReceived);
|
| + // If setData() returns false, we know that this is a decode error.
|
| + // Report size available so that it gets registered as such in
|
| + // ImageResource.
|
| + if (!m_source.setData(*data, allDataReceived))
|
| + return true;
|
|
|
| return dataChanged(allDataReceived);
|
| }
|
|
|