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

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: Rewind Created 3 years, 9 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 04326872ce90c02034c5b376c7520513f9726a84..b3148e90f18498aabeb92ca12c2fb1e06134c8f1 100644
--- a/third_party/WebKit/Source/core/loader/resource/MockImageResourceObserver.cpp
+++ b/third_party/WebKit/Source/core/loader/resource/MockImageResourceObserver.cpp
@@ -41,6 +41,7 @@ void MockImageResourceObserver::imageChanged(ImageResourceContent* image,
void MockImageResourceObserver::imageNotifyFinished(
ImageResourceContent* image) {
ASSERT_EQ(0, m_imageNotifyFinishedCount);
+ DCHECK(image->isLoaded());
hiroshige 2017/03/15 00:22:58 This CL enables this DCHECK(). (Previously this fa
m_imageNotifyFinishedCount++;
m_imageWidthOnImageNotifyFinished =
m_content->hasImage() ? m_content->getImage()->width() : 0;

Powered by Google App Engine
This is Rietveld 408576698