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