| Index: third_party/WebKit/Source/wtf/text/StringImpl.h
|
| diff --git a/third_party/WebKit/Source/wtf/text/StringImpl.h b/third_party/WebKit/Source/wtf/text/StringImpl.h
|
| index 30736e2e2fc1bcd33c5d600d5b75d61e7ebffb5a..bbb92eceebf2195c8eed8fffee13742b5ba0653c 100644
|
| --- a/third_party/WebKit/Source/wtf/text/StringImpl.h
|
| +++ b/third_party/WebKit/Source/wtf/text/StringImpl.h
|
| @@ -229,7 +229,10 @@ public:
|
| template <typename CharType>
|
| ALWAYS_INLINE const CharType * getCharacters() const;
|
|
|
| - size_t sizeInBytes() const;
|
| + size_t charactersSizeInBytes() const
|
| + {
|
| + return length() * (is8Bit() ? sizeof(LChar) : sizeof(UChar));
|
| + }
|
|
|
| bool isAtomic() const { return m_isAtomic; }
|
| void setIsAtomic(bool isAtomic) { m_isAtomic = isAtomic; }
|
|
|