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 6bd22c923ea3ab9b77ed1e4398427c6af54cfd5c..4e0d82778559c193233e4903edf3607760c1ce31 100644 |
--- a/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp |
@@ -198,9 +198,9 @@ Image::SizeAvailability BitmapImage::setData(PassRefPtr<SharedBuffer> data, bool |
if (!length) |
return SizeAvailable; |
- // If ImageSource::setData() returns Invalid, we know that this is a decode error. |
+ // If ImageSource::setData() fails, 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) == ImageDecoder::SniffResult::Invalid) |
+ if (!m_source.setData(data, allDataReceived)) |
return SizeAvailable; |
return dataChanged(allDataReceived); |