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

Unified Diff: third_party/WebKit/Source/core/frame/ImageBitmap.cpp

Issue 2883353002: Replace ASSERT with DCHECK_LE/GE/GT/LT/NE as appropriate (Closed)
Patch Set: DCHECK in BluetoothCharacteristicProperties.cpp 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/frame/ImageBitmap.cpp
diff --git a/third_party/WebKit/Source/core/frame/ImageBitmap.cpp b/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
index 4534c55eb1614e0bb0386ceaf706b006d1db93e4..0241feb6268fb4cff305aba4cc213765bae9fc5d 100644
--- a/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
+++ b/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
@@ -1071,14 +1071,14 @@ PassRefPtr<Uint8Array> ImageBitmap::CopyBitmapData(AlphaDisposition alpha_op,
unsigned long ImageBitmap::width() const {
if (!image_)
return 0;
- ASSERT(image_->width() > 0);
+ DCHECK_GT(image_->width(), 0);
return image_->width();
}
unsigned long ImageBitmap::height() const {
if (!image_)
return 0;
- ASSERT(image_->height() > 0);
+ DCHECK_GT(image_->height(), 0);
return image_->height();
}

Powered by Google App Engine
This is Rietveld 408576698