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

Unified Diff: webkit/glue/webpreferences.cc

Issue 10916279: Chromium compositor change implementing page-scale driven pinch-zoom. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Change m_unpinchedViewportSize and remove unnecessary >1 page scale clamping. Created 8 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: webkit/glue/webpreferences.cc
===================================================================
--- webkit/glue/webpreferences.cc (revision 159486)
+++ webkit/glue/webpreferences.cc (working copy)
@@ -120,7 +120,8 @@
fixed_position_creates_stacking_context(false),
sync_xhr_in_documents_enabled(true),
number_of_cpu_cores(1),
- cookie_enabled(true) {
+ cookie_enabled(true),
+ apply_page_scale_factor_in_compositor(false) {
standard_font_family_map[kCommonScript] =
ASCIIToUTF16("Times New Roman");
fixed_font_family_map[kCommonScript] =
@@ -235,6 +236,8 @@
settings->setDefaultTextEncodingName(ASCIIToUTF16(default_encoding));
settings->setApplyDefaultDeviceScaleFactorInCompositor(
apply_default_device_scale_factor_in_compositor);
+ settings->setApplyPageScaleFactorInCompositor(
+ apply_page_scale_factor_in_compositor);
settings->setJavaScriptEnabled(javascript_enabled);
settings->setWebSecurityEnabled(web_security_enabled);
settings->setJavaScriptCanOpenWindowsAutomatically(
@@ -419,6 +422,9 @@
settings->setFixedPositionCreatesStackingContext(
fixed_position_creates_stacking_context);
+ settings->setApplyPageScaleFactorInCompositor(
+ apply_page_scale_factor_in_compositor);
+
WebNetworkStateNotifier::setOnLine(is_online);
}
« content/browser/web_contents/web_contents_impl.cc ('K') | « webkit/glue/webpreferences.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698