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

Unified Diff: third_party/WebKit/Source/core/page/PrintContext.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/page/PrintContext.cpp
diff --git a/third_party/WebKit/Source/core/page/PrintContext.cpp b/third_party/WebKit/Source/core/page/PrintContext.cpp
index 12bed3d6427b5c6f8ce4e2ba2c2fdc17ab33613b..4b60473f0423b4241e5c26cc501a976a129d8645 100644
--- a/third_party/WebKit/Source/core/page/PrintContext.cpp
+++ b/third_party/WebKit/Source/core/page/PrintContext.cpp
@@ -151,8 +151,8 @@ void PrintContext::ComputePageRectsWithPageSizeInternal(
}
void PrintContext::BeginPrintMode(float width, float height) {
- ASSERT(width > 0);
- ASSERT(height > 0);
+ DCHECK_GT(width, 0);
+ DCHECK_GT(height, 0);
// This function can be called multiple times to adjust printing parameters
// without going back to screen mode.

Powered by Google App Engine
This is Rietveld 408576698