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

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

Issue 622653002: Force ComplexPath if any part of the node requires it (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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: Source/platform/fonts/Font.cpp
diff --git a/Source/platform/fonts/Font.cpp b/Source/platform/fonts/Font.cpp
index 49d150c1672e1458f3537ae36f23af97daeb21b1..7b160db42318a195318e611aa822cf913345cbd3 100644
--- a/Source/platform/fonts/Font.cpp
+++ b/Source/platform/fonts/Font.cpp
@@ -298,6 +298,9 @@ CodePath Font::codePath(const TextRun& run) const
if (run.is8Bit())
return SimplePath;
+ if (run.useComplexCodePath())
leviw_travelin_and_unemployed 2014/10/01 20:33:14 Are you sure you want this check here? Could a Ren
eae 2014/10/01 21:16:43 Yes but then it would be due to a CSS setting in w
leviw_travelin_and_unemployed 2014/10/01 21:37:28 I'm not sure I understand. The case I'm thinking i
+ return ComplexPath;
+
// Start from 0 since drawing and highlighting also measure the characters before run->from.
return Character::characterRangeCodePath(run.characters16(), run.length());
}

Powered by Google App Engine
This is Rietveld 408576698