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

Unified Diff: third_party/WebKit/Source/platform/text/CharacterEmoji.cpp

Issue 1902553004: Do not break after ZWJ if the trailing character is Emoji. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment to isEmoji method Created 4 years, 8 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 | « third_party/WebKit/Source/platform/text/Character.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/text/CharacterEmoji.cpp
diff --git a/third_party/WebKit/Source/platform/text/CharacterEmoji.cpp b/third_party/WebKit/Source/platform/text/CharacterEmoji.cpp
index e0fbb83e2d72b36372439e904fb984844ebf4eed..ab3b981cbf7b033fcfcd6dae93eb0a3bd22f08e8 100644
--- a/third_party/WebKit/Source/platform/text/CharacterEmoji.cpp
+++ b/third_party/WebKit/Source/platform/text/CharacterEmoji.cpp
@@ -84,6 +84,11 @@ static void applyPatternAndFreeze(icu::UnicodeSet* unicodeSet, const char* patte
ASSERT(err == U_ZERO_ERROR);
}
+bool Character::isEmoji(UChar32 ch)
+{
+ return Character::isEmojiTextDefault(ch) || Character::isEmojiEmojiDefault(ch);
+}
+
bool Character::isEmojiTextDefault(UChar32 ch)
{
DEFINE_STATIC_LOCAL(icu::UnicodeSet, emojiTextSet, ());
« no previous file with comments | « third_party/WebKit/Source/platform/text/Character.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698