X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2FSource%2Fwtf%2Ftext%2FStringImpl.h;h=d763219fa19d519cf6659652d5fa763ff94aa01d;hb=3545e9f2671f595d2a2f3ee75ca0393b01e35ef6;hp=2c35a29413685f9f03114ef3759f841a3612a8e5;hpb=7d210d4c7e9ba36e635eabc5b5780495f8a63292;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/Source/wtf/text/StringImpl.h b/src/third_party/WebKit/Source/wtf/text/StringImpl.h index 2c35a29..d763219 100644 --- a/src/third_party/WebKit/Source/wtf/text/StringImpl.h +++ b/src/third_party/WebKit/Source/wtf/text/StringImpl.h @@ -141,6 +141,19 @@ private: hash(); } + enum ConstructEmptyString16BitTag { ConstructEmptyString16Bit }; + explicit StringImpl(ConstructEmptyString16BitTag) + : m_refCount(1) + , m_length(0) + , m_hash(0) + , m_isAtomic(false) + , m_is8Bit(false) + , m_isStatic(true) + { + STRING_STATS_ADD_16BIT_STRING(m_length); + hash(); + } + // FIXME: there has to be a less hacky way to do this. enum Force8Bit { Force8BitConstructor }; StringImpl(unsigned length, Force8Bit) @@ -291,6 +304,7 @@ public: } static StringImpl* empty(); + static StringImpl* empty16Bit(); // FIXME: Does this really belong in StringImpl? template static void copyChars(T* destination, const T* source, unsigned numCharacters)