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

Unified Diff: third_party/WebKit/Source/core/frame/PageScaleConstraints.cpp

Issue 2350163002: Prevent LayoutTest setting -1 page scale factor. (Closed)
Patch Set: Created 4 years, 3 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/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)
- return pageScaleFactor;
if (minimumScale != -1)
pageScaleFactor = std::max(pageScaleFactor, minimumScale);
if (maximumScale != -1)

Powered by Google App Engine
This is Rietveld 408576698