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

Unified Diff: Source/platform/fonts/UTF16TextIterator.h

Issue 1227883003: Handle U+3099/309A Kana Voiced Sound Marks in complex path (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: TODO comment moved to a bug Created 5 years, 5 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/fonts/Character.cpp ('k') | Source/platform/fonts/UTF16TextIterator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/fonts/UTF16TextIterator.h
diff --git a/Source/platform/fonts/UTF16TextIterator.h b/Source/platform/fonts/UTF16TextIterator.h
index c988cd9f900c5241c3fed25d3633e9955b0923da..6a2ec343fdd5c9f29cc3b531f24b35724766bbf6 100644
--- a/Source/platform/fonts/UTF16TextIterator.h
+++ b/Source/platform/fonts/UTF16TextIterator.h
@@ -45,7 +45,7 @@ public:
character = *m_characters;
m_currentGlyphLength = 1;
- if (character < hiraganaLetterSmallACharacter || consumeSlowCase(character)) {
+ if (!U16_IS_SURROGATE(character) || consumeSurrogatePair(character)) {
if (U_GET_GC_MASK(character) & U_GC_M_MASK)
consumeMultipleUChar();
return true;
@@ -68,9 +68,8 @@ public:
unsigned glyphLength() const { return m_currentGlyphLength; }
private:
- bool consumeSlowCase(UChar32&);
+ bool consumeSurrogatePair(UChar32&);
void consumeMultipleUChar();
- UChar32 normalizeVoicingMarks();
const UChar* m_characters;
const UChar* m_charactersEnd;
« no previous file with comments | « Source/platform/fonts/Character.cpp ('k') | Source/platform/fonts/UTF16TextIterator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698