Chromium Code Reviews| 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) |