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

Unified Diff: content/shell/renderer/test_runner/TestInterfaces.cpp

Issue 255943007: Renaming --enable-font-smoothing cmd line argument to --enable-font-antialiasing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Preparing for landing as 4-sided patch Created 6 years, 8 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 | « content/shell/common/shell_switches.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/test_runner/TestInterfaces.cpp
diff --git a/content/shell/renderer/test_runner/TestInterfaces.cpp b/content/shell/renderer/test_runner/TestInterfaces.cpp
index dca5d7580f7c2440270cd77b747b07cd559741bc..dff59cfb7b7d155f275cfc4a7ffb4f9b2ea5fb7d 100644
--- a/content/shell/renderer/test_runner/TestInterfaces.cpp
+++ b/content/shell/renderer/test_runner/TestInterfaces.cpp
@@ -38,8 +38,12 @@ TestInterfaces::TestInterfaces()
, m_delegate(0)
{
blink::setLayoutTestMode(true);
- if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableFontSmoothing))
- blink::setFontSmoothingEnabledForTest(true);
+
+ // FIXME(dro) crbug.com/367082: Remove the smoothing parameter once the rename is complete
+ // on the Blink side.
+ if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableFontAntialiasing) ||
+ CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableFontSmoothing))
+ blink::setFontAntialiasingEnabledForTest(true);
// NOTE: please don't put feature specific enable flags here,
// instead add them to RuntimeEnabledFeatures.in
« no previous file with comments | « content/shell/common/shell_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698