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

Unified Diff: ui/gfx/font_render_params_linux.cc

Issue 1020263004: Force --enable-webkit-text-subpixel-positioning for DSF > 1.0. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Force --enable-webkit-text-subpixel-positioning for DSF > 1.0. Created 5 years, 9 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 | « chrome/browser/chromeos/login/chrome_restart_request.cc ('k') | ui/gfx/switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/font_render_params_linux.cc
diff --git a/ui/gfx/font_render_params_linux.cc b/ui/gfx/font_render_params_linux.cc
index ed338d66cbcbc46f553d1afd3ec22bd40a0127a1..9f9440a8f6bbebebb32a60f298b19f55e337a722 100644
--- a/ui/gfx/font_render_params_linux.cc
+++ b/ui/gfx/font_render_params_linux.cc
@@ -248,13 +248,7 @@ FontRenderParams GetFontRenderParams(const FontRenderParamsQuery& query,
params.subpixel_rendering = FontRenderParams::SUBPIXEL_RENDERING_NONE;
params.subpixel_positioning = false;
} else {
- // Fontconfig doesn't support configuring subpixel positioning; check a
- // flag.
- params.subpixel_positioning =
- actual_query.for_web_contents
sadrul 2015/03/31 18:20:06 Looks like this was the only use of |FondRenderPar
stapelberg 2015/03/31 18:29:29 Yes, I think so. I’ll do that in a separate CL tho
- ? base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableWebkitTextSubpixelPositioning)
- : actual_query.device_scale_factor > 1.0f;
+ params.subpixel_positioning = actual_query.device_scale_factor > 1.0f;
// To enable subpixel positioning, we need to disable hinting.
if (params.subpixel_positioning)
« no previous file with comments | « chrome/browser/chromeos/login/chrome_restart_request.cc ('k') | ui/gfx/switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698