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

Unified Diff: third_party/WebKit/Source/core/fetch/ImageResource.cpp

Issue 2510333002: Send encoded_body_length to renderer when response completed (2/3) (Closed)
Patch Set: rebase Created 4 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: third_party/WebKit/Source/core/fetch/ImageResource.cpp
diff --git a/third_party/WebKit/Source/core/fetch/ImageResource.cpp b/third_party/WebKit/Source/core/fetch/ImageResource.cpp
index b8e64992ef5c27b8b57bdf11fc69c58d37fd5df9..0dae78e07f2abdc91d4f179feb783582253255d3 100644
--- a/third_party/WebKit/Source/core/fetch/ImageResource.cpp
+++ b/third_party/WebKit/Source/core/fetch/ImageResource.cpp
@@ -507,8 +507,10 @@ void ImageResource::updateImage(bool allDataReceived) {
clear();
if (!errorOccurred())
setStatus(DecodeError);
- if (!allDataReceived && loader())
- loader()->didFinishLoading(nullptr, monotonicallyIncreasingTime(), size);
+ if (!allDataReceived && loader()) {
+ loader()->didFinishLoading(nullptr, monotonicallyIncreasingTime(), size,
+ size);
+ }
memoryCache()->remove(this);
}
« no previous file with comments | « content/renderer/fetchers/resource_fetcher_impl.cc ('k') | third_party/WebKit/Source/core/fetch/ImageResourceTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698