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

Unified Diff: third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.cpp

Issue 2899573002: Clean up remaining uses of ASSERT in core (Closed)
Patch Set: 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/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);

Powered by Google App Engine
This is Rietveld 408576698