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

Unified Diff: Source/platform/fonts/Font.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 | « Source/platform/RuntimeEnabledFeatures.in ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/fonts/Font.cpp
diff --git a/Source/platform/fonts/Font.cpp b/Source/platform/fonts/Font.cpp
index 0e37b836daa12fb56811319037cd8680a5ea3f53..e1f1b5fcf9ab301a38c8b9f50254ab5b9154a634 100644
--- a/Source/platform/fonts/Font.cpp
+++ b/Source/platform/fonts/Font.cpp
@@ -298,6 +298,9 @@ int Font::offsetForPosition(const TextRun& run, float x, bool includePartialGlyp
CodePath Font::codePath(const TextRunPaintInfo& runInfo) const
{
+ if (RuntimeEnabledFeatures::alwaysUseComplexTextEnabled())
+ return ComplexPath;
+
const TextRun& run = runInfo.run;
if (fontDescription().typesettingFeatures() && (runInfo.from || runInfo.to != run.length()))
« no previous file with comments | « Source/platform/RuntimeEnabledFeatures.in ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698