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

Unified Diff: third_party/WebKit/Source/platform/fonts/Font.cpp

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 | « third_party/WebKit/Source/platform/LayoutTestSupport.cpp ('k') | third_party/WebKit/Source/web/WebKit.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/fonts/Font.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/Font.cpp b/third_party/WebKit/Source/platform/fonts/Font.cpp
index be6e9d4047895800d3724d0df3d70e77631afe6e..77ab8d9edceab239d6d7d92dddfa284ee512c43e 100644
--- a/third_party/WebKit/Source/platform/fonts/Font.cpp
+++ b/third_party/WebKit/Source/platform/fonts/Font.cpp
@@ -25,6 +25,7 @@
#include "config.h"
#include "platform/fonts/Font.h"
+#include "platform/LayoutTestSupport.h"
#include "platform/LayoutUnit.h"
#include "platform/RuntimeEnabledFeatures.h"
#include "platform/fonts/Character.h"
@@ -310,8 +311,10 @@ int Font::offsetForPosition(const TextRun& run, float x, bool includePartialGlyp
CodePath Font::codePath(const TextRunPaintInfo& runInfo) const
{
- if (RuntimeEnabledFeatures::alwaysUseComplexTextEnabled())
+ if (RuntimeEnabledFeatures::alwaysUseComplexTextEnabled()
+ || LayoutTestSupport::alwaysUseComplexTextForTest()) {
return ComplexPath;
+ }
const TextRun& run = runInfo.run;
« no previous file with comments | « third_party/WebKit/Source/platform/LayoutTestSupport.cpp ('k') | third_party/WebKit/Source/web/WebKit.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698