| 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 8570d01f7ab92b0817f26668b7f67d6ed5c9b333..6df36b6890cb9b679727c726f6c6d2813026cffc 100644
|
| --- a/third_party/WebKit/Source/wtf/text/TextCodecUTF16.h
|
| +++ b/third_party/WebKit/Source/wtf/text/TextCodecUTF16.h
|
| @@ -35,7 +35,7 @@ public:
|
| 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, FlushBehavior, bool stopOnError, bool& sawError) override;
|
| CString encode(const UChar*, size_t length, UnencodableHandling) override;
|
| @@ -43,8 +43,10 @@ public:
|
|
|
| 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
|
|
|