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

Unified Diff: third_party/WebKit/Source/core/frame/FrameViewAutoSizeInfo.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/FrameViewAutoSizeInfo.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameViewAutoSizeInfo.cpp b/third_party/WebKit/Source/core/frame/FrameViewAutoSizeInfo.cpp
index 416bc538715697a21333c77b991fdcb6f3425de5..b5dc829fd9d44858138f8e1a20bc6021f97e2da4 100644
--- a/third_party/WebKit/Source/core/frame/FrameViewAutoSizeInfo.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameViewAutoSizeInfo.cpp
@@ -25,8 +25,8 @@ DEFINE_TRACE(FrameViewAutoSizeInfo) {
void FrameViewAutoSizeInfo::ConfigureAutoSizeMode(const IntSize& min_size,
const IntSize& max_size) {
DCHECK(!min_size.IsEmpty());
- ASSERT(min_size.Width() <= max_size.Width());
- ASSERT(min_size.Height() <= max_size.Height());
+ DCHECK_LE(min_size.Width(), max_size.Width());
+ DCHECK_LE(min_size.Height(), max_size.Height());
if (min_auto_size_ == min_size && max_auto_size_ == max_size)
return;

Powered by Google App Engine
This is Rietveld 408576698