Index: third_party/WebKit/Source/platform/graphics/Image.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/Image.cpp b/third_party/WebKit/Source/platform/graphics/Image.cpp |
index 52afd6afbe0f53c75e29d33453be79569e3b0a98..0a7109d0cd96d25cc76889554d5567d9b4c1bcbd 100644 |
--- a/third_party/WebKit/Source/platform/graphics/Image.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/Image.cpp |
@@ -82,15 +82,15 @@ bool Image::supportsType(const String& type) |
return MIMETypeRegistry::isSupportedImageResourceMIMEType(type); |
} |
-bool Image::setData(PassRefPtr<SharedBuffer> data, bool allDataReceived) |
+Image::SizeAvailability Image::setData(PassRefPtr<SharedBuffer> data, bool allDataReceived) |
{ |
m_encodedImageData = data; |
if (!m_encodedImageData.get()) |
- return true; |
+ return SizeAvailable; |
int length = m_encodedImageData->size(); |
if (!length) |
- return true; |
+ return SizeAvailable; |
return dataChanged(allDataReceived); |
} |