| Index: third_party/WebKit/Source/wtf/text/StringImpl.cpp
|
| diff --git a/third_party/WebKit/Source/wtf/text/StringImpl.cpp b/third_party/WebKit/Source/wtf/text/StringImpl.cpp
|
| index dfaef64356afd78cdbeef85436b84286d5243fac..756c0ec2be85c92eb09cc67167e1f53ed1700ec1 100644
|
| --- a/third_party/WebKit/Source/wtf/text/StringImpl.cpp
|
| +++ b/third_party/WebKit/Source/wtf/text/StringImpl.cpp
|
| @@ -397,6 +397,12 @@ StringImpl* StringImpl::createStatic(const char* string, unsigned length, unsign
|
| return impl;
|
| }
|
|
|
| +void StringImpl::reserveStaticStringsCapacityForSize(unsigned size)
|
| +{
|
| + ASSERT(s_allowCreationOfStaticStrings);
|
| + staticStrings().reserveCapacityForSize(size);
|
| +}
|
| +
|
| PassRefPtr<StringImpl> StringImpl::create(const UChar* characters, unsigned length)
|
| {
|
| if (!characters || !length)
|
|
|