Chromium Code Reviews| Index: third_party/WebKit/Source/core/frame/PageScaleConstraints.cpp |
| diff --git a/third_party/WebKit/Source/core/frame/PageScaleConstraints.cpp b/third_party/WebKit/Source/core/frame/PageScaleConstraints.cpp |
| index 563265425618c79fd7cd3fe92aaa2ac57e97bdb5..8494f7d9bfacc9e5f498e978f81ab598c0509c58 100644 |
| --- a/third_party/WebKit/Source/core/frame/PageScaleConstraints.cpp |
| +++ b/third_party/WebKit/Source/core/frame/PageScaleConstraints.cpp |
| @@ -58,8 +58,6 @@ void PageScaleConstraints::overrideWith(const PageScaleConstraints& other) |
| float PageScaleConstraints::clampToConstraints(float pageScaleFactor) const |
| { |
| - if (pageScaleFactor == -1) |
|
bokan
2016/09/19 19:01:21
I don't think this is the right way to fix this. -
|
| - return pageScaleFactor; |
| if (minimumScale != -1) |
| pageScaleFactor = std::max(pageScaleFactor, minimumScale); |
| if (maximumScale != -1) |