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 2f82c06ba0495ae6d5b9d483c7ef9239a52281fe..38d5c599eedd0ad513e00b0828033599cc16d963 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) |