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

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

Issue 2746343002: Phase III Step 1: Make ImageResourceContent manage its own ResourceStatus (Closed)
Patch Set: Reflect comments Created 3 years, 7 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/MockImageResourceObserver.cpp
diff --git a/third_party/WebKit/Source/core/loader/resource/MockImageResourceObserver.cpp b/third_party/WebKit/Source/core/loader/resource/MockImageResourceObserver.cpp
index cbea3ddcf21e4edc46d5fa4e9fa4036eef4b0e02..4f9ff9018e4c35e182a0111e5b7c18521e2bb57e 100644
--- a/third_party/WebKit/Source/core/loader/resource/MockImageResourceObserver.cpp
+++ b/third_party/WebKit/Source/core/loader/resource/MockImageResourceObserver.cpp
@@ -41,10 +41,11 @@ void MockImageResourceObserver::ImageChanged(ImageResourceContent* image,
void MockImageResourceObserver::ImageNotifyFinished(
ImageResourceContent* image) {
ASSERT_EQ(0, image_notify_finished_count_);
+ DCHECK(image->IsLoaded());
image_notify_finished_count_++;
image_width_on_image_notify_finished_ =
content_->HasImage() ? content_->GetImage()->width() : 0;
- status_on_image_notify_finished_ = content_->GetStatus();
+ status_on_image_notify_finished_ = content_->GetContentStatus();
}
bool MockImageResourceObserver::ImageNotifyFinishedCalled() const {

Powered by Google App Engine
This is Rietveld 408576698