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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutText.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
Index: third_party/WebKit/Source/core/layout/LayoutText.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutText.cpp b/third_party/WebKit/Source/core/layout/LayoutText.cpp
index 237b48cd3508b9c60a6e3a92c884e81172da9c1b..e9ca24f2dec3d70a13a640a3c8c42cd2182552d4 100644
--- a/third_party/WebKit/Source/core/layout/LayoutText.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutText.cpp
@@ -41,6 +41,7 @@
#include "core/layout/line/GlyphOverflow.h"
#include "core/layout/line/InlineTextBox.h"
#include "core/paint/PaintLayer.h"
+#include "platform/LayoutTestSupport.h"
#include "platform/fonts/Character.h"
#include "platform/fonts/FontCache.h"
#include "platform/geometry/FloatQuad.h"
@@ -1832,8 +1833,10 @@ int LayoutText::nextOffset(int current) const
bool LayoutText::computeCanUseSimpleFontCodePath() const
{
- if (RuntimeEnabledFeatures::alwaysUseComplexTextEnabled())
+ if (RuntimeEnabledFeatures::alwaysUseComplexTextEnabled()
+ || LayoutTestSupport::alwaysUseComplexTextForTest()) {
return false;
+ }
if (m_text.is8Bit())
return true;
return Character::characterRangeCodePath(characters16(), length()) == SimplePath;

Powered by Google App Engine
This is Rietveld 408576698