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

Unified Diff: android_webview/native/aw_settings.cc

Issue 49043010: Plumb device scale adjustment separately. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rmquirk
Patch Set: Created 7 years, 2 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 | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/aw_settings.cc
diff --git a/android_webview/native/aw_settings.cc b/android_webview/native/aw_settings.cc
index d46394b609e73121dcd3d9a534832b1e12e0ebba..c4cb8242e661802558cb61c3f82e7f00b12fbf31 100644
--- a/android_webview/native/aw_settings.cc
+++ b/android_webview/native/aw_settings.cc
@@ -198,7 +198,7 @@ void AwSettings::PopulateWebPreferences(WebPreferences* web_prefs) {
int text_size_percent = Java_AwSettings_getTextSizePercentLocked(env, obj);
if (web_prefs->text_autosizing_enabled) {
- web_prefs->text_autosizing_font_scale_factor = text_size_percent / 100.0f;
+ web_prefs->font_scale_factor = text_size_percent / 100.0f;
web_prefs->force_enable_zoom = text_size_percent >= 130;
// Use the default zoom factor value when Text Autosizer is turned on.
render_view_host_ext->SetTextZoomFactor(1);
« no previous file with comments | « no previous file | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698