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

Unified Diff: content/renderer/render_view_win.cc

Issue 1763803002: Pass Windows font rendering preferences from browser to blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | third_party/WebKit/Source/platform/fonts/FontCache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_win.cc
diff --git a/content/renderer/render_view_win.cc b/content/renderer/render_view_win.cc
index 15cb47bf7cd8041109d1374604c19fa041e94cc4..51f97f5dd7cebbc1e8fd1435b9d0e5f6e576c974 100644
--- a/content/renderer/render_view_win.cc
+++ b/content/renderer/render_view_win.cc
@@ -32,6 +32,11 @@ void RenderViewImpl::UpdateFontRenderingFromRendererPrefs() {
blink::WebFontRendering::setLCDOrientation(
gfx::FontRenderParams::SubpixelRenderingToSkiaLCDOrientation(
prefs.subpixel_rendering));
+
+ blink::WebFontRendering::setAntialiasedTextEnabled(
+ prefs.should_antialias_text);
+ blink::WebFontRendering::setLCDTextEnabled(prefs.subpixel_rendering
+ != gfx::FontRenderParams::SUBPIXEL_RENDERING_NONE);
}
void RenderViewImpl::UpdateThemePrefs() {
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/fonts/FontCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698