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

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

Issue 2924263003: [LayoutNG] Initial letter-spacing and word-spacing support (Closed)
Patch Set: Cleanup Created 3 years, 6 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/text/TextRun.h
diff --git a/third_party/WebKit/Source/platform/text/TextRun.h b/third_party/WebKit/Source/platform/text/TextRun.h
index 9eacc5559fb62755560b2b602e02cca7babe4eca..f06e7bba7121aad6ccc27993c1bac14af830186a 100644
--- a/third_party/WebKit/Source/platform/text/TextRun.h
+++ b/third_party/WebKit/Source/platform/text/TextRun.h
@@ -192,6 +192,8 @@ class PLATFORM_EXPORT TextRun final {
return codepoint;
}
+ const void* Bytes() const { return data_.bytes_; }
+
bool Is8Bit() const { return is8_bit_; }
unsigned length() const { return len_; }
unsigned CharactersLength() const { return characters_length_; }
@@ -270,6 +272,7 @@ class PLATFORM_EXPORT TextRun final {
union {
const LChar* characters8;
const UChar* characters16;
+ const void* bytes_;
} data_;
// Marks the end of the characters buffer. Default equals to m_len.
unsigned characters_length_;

Powered by Google App Engine
This is Rietveld 408576698