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 { |