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

Unified Diff: third_party/WebKit/Source/core/loader/resource/ImageResource.cpp

Issue 2835123005: Send the decoded size when response completed and stop summing in ResourceLoader::DidReceiveData() (Closed)
Patch Set: Created 3 years, 8 months 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/loader/resource/ImageResource.cpp
diff --git a/third_party/WebKit/Source/core/loader/resource/ImageResource.cpp b/third_party/WebKit/Source/core/loader/resource/ImageResource.cpp
index 8af06b1b7fc289165dd9b0d836b654fe093950d7..98f185d7c86edfe4841449174ee217ba3e4028cb 100644
--- a/third_party/WebKit/Source/core/loader/resource/ImageResource.cpp
+++ b/third_party/WebKit/Source/core/loader/resource/ImageResource.cpp
@@ -333,7 +333,7 @@ void ImageResource::DecodeError(bool all_data_received) {
if (!all_data_received && Loader()) {
// Observers are notified via ImageResource::finish().
// TODO(hiroshige): Do not call didFinishLoading() directly.
- Loader()->DidFinishLoading(MonotonicallyIncreasingTime(), size, size);
+ Loader()->DidFinishLoading(MonotonicallyIncreasingTime(), size, size, size);
} else {
auto result = GetContent()->UpdateImage(
nullptr, ImageResourceContent::kClearImageAndNotifyObservers,

Powered by Google App Engine
This is Rietveld 408576698