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

Unified Diff: Source/core/layout/LayoutText.cpp

Issue 1197833006: Add Experimental Feature to Force the Complex Text Path (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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 | « no previous file | Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutText.cpp
diff --git a/Source/core/layout/LayoutText.cpp b/Source/core/layout/LayoutText.cpp
index e6fcba133d1681440e6746f2d223ba77f6b999b3..a3379781c48d689fef5eb0b161c22d4dca597471 100644
--- a/Source/core/layout/LayoutText.cpp
+++ b/Source/core/layout/LayoutText.cpp
@@ -1819,6 +1819,8 @@ int LayoutText::nextOffset(int current) const
bool LayoutText::computeCanUseSimpleFontCodePath() const
{
+ if (RuntimeEnabledFeatures::alwaysUseComplexTextEnabled())
+ return false;
if (m_text.is8Bit())
return true;
return Character::characterRangeCodePath(characters16(), length()) == SimplePath;
« no previous file with comments | « no previous file | Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698