Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(627)

Unified Diff: Source/core/html/ImageDocument.cpp

Issue 73293003: Moved setting of visual ordering from DocumentWriter to DecodedDataDocument (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@parserthread_decoderownership
Patch Set: Rebase Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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()

Powered by Google App Engine
This is Rietveld 408576698