| 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));
|
|
|