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

Unified Diff: third_party/WebKit/Source/platform/text/TextRun.h

Issue 2598393002: Do not skip ink for ideographic scripts (Closed)
Patch Set: drott nits Created 3 years, 11 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/fonts/shaping/ShapeResultBuffer.cpp ('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/TextRun.h
diff --git a/third_party/WebKit/Source/platform/text/TextRun.h b/third_party/WebKit/Source/platform/text/TextRun.h
index 1cec2196b84abecf9b9b4c0d5f6f7f0ab6913fd3..da248e4f33accc392b22f84acabae1454fe6cd74 100644
--- a/third_party/WebKit/Source/platform/text/TextRun.h
+++ b/third_party/WebKit/Source/platform/text/TextRun.h
@@ -182,6 +182,15 @@ class PLATFORM_EXPORT TextRun final {
return m_data.characters16;
}
+ UChar32 codepointAt(unsigned i) const {
+ if (is8Bit())
+ return (*this)[i];
+ UChar32 codepoint;
+ SECURITY_DCHECK(i < m_len);
+ U16_GET(characters16(), 0, i, m_len, codepoint);
+ return codepoint;
+ }
+
UChar32 codepointAtAndNext(unsigned& i) const {
if (is8Bit())
return (*this)[i++];
« no previous file with comments | « third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBuffer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698