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

Unified Diff: content/shell/renderer/layout_test/layout_test_render_process_observer.cc

Issue 1394003004: Add flag to force complex text for tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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') | third_party/WebKit/Source/core/layout/LayoutText.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/layout_test/layout_test_render_process_observer.cc
diff --git a/content/shell/renderer/layout_test/layout_test_render_process_observer.cc b/content/shell/renderer/layout_test/layout_test_render_process_observer.cc
index c818b73a869508972cfd04d942aa65180c0fff37..71d29c4dff5be1465270a12e2d6d3267ee167d6c 100644
--- a/content/shell/renderer/layout_test/layout_test_render_process_observer.cc
+++ b/content/shell/renderer/layout_test/layout_test_render_process_observer.cc
@@ -75,7 +75,10 @@ void LayoutTestRenderProcessObserver::WebKitInitialized() {
switches::kEnableFontAntialiasing)) {
blink::setFontAntialiasingEnabledForTest(true);
}
-
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kAlwaysUseComplexText)) {
+ blink::setAlwaysUseComplexTextForTest(true);
+ }
}
void LayoutTestRenderProcessObserver::OnRenderProcessShutdown() {
« no previous file with comments | « content/shell/common/shell_switches.cc ('k') | third_party/WebKit/Source/core/layout/LayoutText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698