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

Unified Diff: chrome/browser/renderer_preferences_util.cc

Issue 10544103: Chromium change of sharing some WebKit API between Android/Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update Created 8 years, 6 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 | content/content_renderer.gypi » ('j') | content/content_renderer.gypi » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_preferences_util.cc
diff --git a/chrome/browser/renderer_preferences_util.cc b/chrome/browser/renderer_preferences_util.cc
index 7c66eb275f001d323f1c55bb8d09612e2cf53708..5166a9949a6da3f8096a16423abcedae72df4994 100644
--- a/chrome/browser/renderer_preferences_util.cc
+++ b/chrome/browser/renderer_preferences_util.cc
@@ -50,6 +50,12 @@ void UpdateFromSystemSettings(
prefs->active_selection_fg_color = SK_ColorBLACK;
prefs->inactive_selection_bg_color = SkColorSetRGB(0xEA, 0xEA, 0xEA);
prefs->inactive_selection_fg_color = SK_ColorBLACK;
+#elif defined(OS_ANDROID)
Daniel Erat 2012/06/14 23:44:20 You need to sync and merge this file; it's changed
Xianzhu 2012/06/15 00:05:00 Sorry I overlooked your newest change. It's great
+ // Use subpixel text positioning to keep consistent character spacing when
+ // the page is scaled by a fractional factor.
+ prefs->use_subpixel_positioning = true;
+ // Slight hinting renders much better than normal hinting on Android.
+ prefs->hinting = content::RENDERER_PREFERENCES_HINTING_SLIGHT;
#endif
prefs->enable_referrers =
« no previous file with comments | « no previous file | content/content_renderer.gypi » ('j') | content/content_renderer.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698