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

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

Issue 1780723002: Enable Emoji Fitzpatrick modifier sequences (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased on renamed CharacterData file Created 4 years, 9 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 | third_party/WebKit/Source/platform/fonts/CharacterPropertyData.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/Character.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/Character.cpp b/third_party/WebKit/Source/platform/fonts/Character.cpp
index 6ea32548579a414039fc3b488389cb6bb9939c02..a7bc15688416f938a42863d21c3a9ef2c102b2f0 100644
--- a/third_party/WebKit/Source/platform/fonts/Character.cpp
+++ b/third_party/WebKit/Source/platform/fonts/Character.cpp
@@ -190,6 +190,12 @@ CodePath Character::characterRangeCodePath(const UChar* characters, unsigned len
if (supplementaryCharacter <= 0x1F1FF)
return ComplexPath;
+ // Emoji Fitzpatrick modifiers trigger upgrade to complex path for shaping them.
+ if (supplementaryCharacter < 0x1F3FB)
+ continue;
+ if (supplementaryCharacter <= 0x1F3FF)
+ return ComplexPath;
+
// Man and Woman Emojies,
// in order to support emoji joiner combinations for family and couple pictographs.
// Compare http://unicode.org/reports/tr51/#Emoji_ZWJ_Sequences
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/fonts/CharacterPropertyData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698