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

Unified Diff: Source/web/PageScaleConstraintsSet.cpp

Issue 567663002: Replace default page scale limits in PageScaleConstraintsSet. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/PageScaleConstraintsSet.cpp
diff --git a/Source/web/PageScaleConstraintsSet.cpp b/Source/web/PageScaleConstraintsSet.cpp
index 550866b5ef8c19a57ba6e01bccd6175a24618a3e..7bdfa3a26556b81745e0e354dc4ad913ea58b22b 100644
--- a/Source/web/PageScaleConstraintsSet.cpp
+++ b/Source/web/PageScaleConstraintsSet.cpp
@@ -40,11 +40,11 @@ static const float defaultMinimumScale = 0.25f;
static const float defaultMaximumScale = 5.0f;
PageScaleConstraintsSet::PageScaleConstraintsSet()
- : m_lastContentsWidth(0)
+ : m_finalConstraints(1, 1, 1)
+ , m_lastContentsWidth(0)
, m_needsReset(false)
, m_constraintsDirty(false)
{
- m_finalConstraints = defaultConstraints();
}
PageScaleConstraints PageScaleConstraintsSet::defaultConstraints() const
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698