Index: third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.cpp |
diff --git a/third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.cpp b/third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.cpp |
index 8c6f54013b3f445c0d0cc2fa5c83a3f7e57053df..5cd50acc8f71668e8762b74e87d7fa8d30945e97 100644 |
--- a/third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.cpp |
+++ b/third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.cpp |
@@ -308,7 +308,8 @@ void ImageBitmapFactories::ImageBitmapLoader::ResolvePromiseOnOriginalThread( |
RejectPromise(); |
return; |
} |
- ASSERT(frame->width() && frame->height()); |
+ DCHECK(frame->width()); |
+ DCHECK(frame->height()); |
RefPtr<StaticBitmapImage> image = StaticBitmapImage::Create(std::move(frame)); |
image->SetOriginClean(true); |