| Index: Source/core/html/ImageDocument.cpp
|
| diff --git a/Source/core/html/ImageDocument.cpp b/Source/core/html/ImageDocument.cpp
|
| index d33588b6cff4ec65ced9c9b427daf65a2b52a35d..350fa9e79ae1a7ebdec9742d7e0c744ebc5bdae7 100644
|
| --- a/Source/core/html/ImageDocument.cpp
|
| +++ b/Source/core/html/ImageDocument.cpp
|
| @@ -94,7 +94,7 @@ private:
|
| {
|
| }
|
|
|
| - virtual size_t appendBytes(const char*, size_t) OVERRIDE;
|
| + virtual void appendBytes(const char*, size_t) OVERRIDE;
|
| virtual void finish();
|
| };
|
|
|
| @@ -120,19 +120,18 @@ static String imageTitle(const String& filename, const IntSize& size)
|
| return result.toString();
|
| }
|
|
|
| -size_t ImageDocumentParser::appendBytes(const char* data, size_t length)
|
| +void ImageDocumentParser::appendBytes(const char* data, size_t length)
|
| {
|
| if (!length)
|
| - return 0;
|
| + return;
|
|
|
| Frame* frame = document()->frame();
|
| Settings* settings = frame->settings();
|
| if (!frame->loader().client()->allowImage(!settings || settings->areImagesEnabled(), document()->url()))
|
| - return 0;
|
| + return;
|
|
|
| document()->cachedImage()->appendData(data, length);
|
| document()->imageUpdated();
|
| - return 0;
|
| }
|
|
|
| void ImageDocumentParser::finish()
|
|
|