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

Unified Diff: third_party/WebKit/Source/core/frame/LocalFrame.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/LocalFrame.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
index 584a14db80632efd22be44e70f77571375892400..404cbce7edeae5b552ab277f169a24e59853fa1c 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
@@ -643,7 +643,8 @@ FloatSize LocalFrame::ResizePageRectsKeepingRatio(
return FloatSize();
if (ContentLayoutItem().Style()->IsHorizontalWritingMode()) {
- ASSERT(fabs(original_size.Width()) > std::numeric_limits<float>::epsilon());
+ DCHECK_GT(fabs(original_size.Width()),
+ std::numeric_limits<float>::epsilon());
float ratio = original_size.Height() / original_size.Width();
result_size.SetWidth(floorf(expected_size.Width()));
result_size.SetHeight(floorf(result_size.Width() * ratio));
« no previous file with comments | « third_party/WebKit/Source/core/frame/ImageBitmap.cpp ('k') | third_party/WebKit/Source/core/frame/SubresourceIntegrity.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698