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

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

Issue 1285633003: Change handling of unmatched surrogate pairs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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/UTF16TextIterator.h
diff --git a/Source/platform/fonts/UTF16TextIterator.h b/Source/platform/fonts/UTF16TextIterator.h
index 6a2ec343fdd5c9f29cc3b531f24b35724766bbf6..f42c7ad123f0e643e834c20cc25ca685dca70154 100644
--- a/Source/platform/fonts/UTF16TextIterator.h
+++ b/Source/platform/fonts/UTF16TextIterator.h
@@ -68,6 +68,7 @@ public:
unsigned glyphLength() const { return m_currentGlyphLength; }
private:
+ bool isValidSurrogatePair(UChar32&);
bool consumeSurrogatePair(UChar32&);
void consumeMultipleUChar();

Powered by Google App Engine
This is Rietveld 408576698