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

Unified Diff: content/common/content_constants.cc

Issue 7831028: Compute pageScaleFactor on page so that fixed layout page fits width of window. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 4 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: content/common/content_constants.cc
diff --git a/content/common/content_constants.cc b/content/common/content_constants.cc
index 31188677eb17b838f7b787692aa943ed8e3a4a76..5b64ce2b9f5ea1620772b2ce1f00e73db7addca9 100644
--- a/content/common/content_constants.cc
+++ b/content/common/content_constants.cc
@@ -13,6 +13,8 @@ const size_t kMaxTitleChars = 4 * 1024;
const size_t kMaxURLChars = 2 * 1024 * 1024;
const size_t kMaxURLDisplayChars = 32 * 1024;
+const float kMinPageScaleFactor = 0.25f;
+const float kMaxPageScaleFactor = 4.0f;
} // namespace content
#undef FPL

Powered by Google App Engine
This is Rietveld 408576698