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

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

Issue 2603343002: Emoji fixes: Two professions and digits with VS16 (Closed)
Patch Set: Created 3 years, 12 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/SymbolsIteratorTest.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/SymbolsIterator.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/SymbolsIterator.cpp b/third_party/WebKit/Source/platform/fonts/SymbolsIterator.cpp
index 199c52dfeaa67ba2b47bb232a298b2a27069dae5..61341c699ac92967d36734ccee2598fe776fd110 100644
--- a/third_party/WebKit/Source/platform/fonts/SymbolsIterator.cpp
+++ b/third_party/WebKit/Source/platform/fonts/SymbolsIterator.cpp
@@ -86,7 +86,8 @@ bool SymbolsIterator::consume(unsigned* symbolsLimit,
m_currentFontFallbackPriority = FontFallbackPriority::EmojiText;
}
- if (m_currentFontFallbackPriority == FontFallbackPriority::EmojiText &&
+ if ((m_currentFontFallbackPriority == FontFallbackPriority::EmojiText ||
+ Character::isEmojiKeycapBase(m_nextChar)) &&
peekChar == variationSelector16Character) {
m_currentFontFallbackPriority = FontFallbackPriority::EmojiEmoji;
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/fonts/SymbolsIteratorTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698