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

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

Issue 1479003002: Remove Simple Text Path (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 2 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: third_party/WebKit/Source/platform/fonts/UTF16TextIterator.h
diff --git a/third_party/WebKit/Source/platform/fonts/UTF16TextIterator.h b/third_party/WebKit/Source/platform/fonts/UTF16TextIterator.h
index 48c5e66d381ee2dc16faff7c8377ab0397401116..2e73599f4b7602345a6d8bf9d839cdf55dabd765 100644
--- a/third_party/WebKit/Source/platform/fonts/UTF16TextIterator.h
+++ b/third_party/WebKit/Source/platform/fonts/UTF16TextIterator.h
@@ -39,12 +39,8 @@ class PLATFORM_EXPORT UTF16TextIterator {
// 'endOffset'.
UTF16TextIterator(const UChar*, int length);
- // FIXME: The offset/endOffset fields are only used by the SimpleShaper,
- // remove once HarfBuzz is used for all text.
- UTF16TextIterator(const UChar*, int offset, int endOffset, int length);
-
inline bool consume(UChar32& character) {
- if (m_offset >= m_endOffset)
+ if (m_offset >= m_length)
return false;
character = *m_characters;
@@ -75,7 +71,7 @@ class PLATFORM_EXPORT UTF16TextIterator {
const UChar* m_characters;
const UChar* m_charactersEnd;
int m_offset;
- int m_endOffset;
+ int m_length;
unsigned m_currentGlyphLength;
};

Powered by Google App Engine
This is Rietveld 408576698