Index: third_party/WebKit/Source/wtf/text/TextCodecUTF16.h |
diff --git a/third_party/WebKit/Source/wtf/text/TextCodecUTF16.h b/third_party/WebKit/Source/wtf/text/TextCodecUTF16.h |
index b080325fa10132815ba04d1cd6b65e463a00cad4..06ed917b923316500219bf7f30128fa59c2af01f 100644 |
--- a/third_party/WebKit/Source/wtf/text/TextCodecUTF16.h |
+++ b/third_party/WebKit/Source/wtf/text/TextCodecUTF16.h |
@@ -35,8 +35,7 @@ class TextCodecUTF16 final : public TextCodec { |
static void registerEncodingNames(EncodingNameRegistrar); |
static void registerCodecs(TextCodecRegistrar); |
- TextCodecUTF16(bool littleEndian) |
- : m_littleEndian(littleEndian), m_haveBufferedByte(false) {} |
+ TextCodecUTF16(bool littleEndian) : m_littleEndian(littleEndian) {} |
String decode(const char*, |
size_t length, |
@@ -48,8 +47,10 @@ class TextCodecUTF16 final : public TextCodec { |
private: |
bool m_littleEndian; |
- bool m_haveBufferedByte; |
- unsigned char m_bufferedByte; |
+ bool m_haveLeadByte = false; |
+ unsigned char m_leadByte; |
+ bool m_haveLeadSurrogate = false; |
+ UChar m_leadSurrogate; |
}; |
} // namespace WTF |