| Index: third_party/WebKit/Source/wtf/text/AtomicStringCF.cpp
|
| diff --git a/third_party/WebKit/Source/wtf/text/AtomicStringCF.cpp b/third_party/WebKit/Source/wtf/text/AtomicStringCF.cpp
|
| index ed8189225401bc9f32a9f1eb12f78120dd0dc893..f62ace51dc7fd5d2d8d184481800caf2f1e160fe 100644
|
| --- a/third_party/WebKit/Source/wtf/text/AtomicStringCF.cpp
|
| +++ b/third_party/WebKit/Source/wtf/text/AtomicStringCF.cpp
|
| @@ -25,6 +25,8 @@
|
|
|
| #include "wtf/text/AtomicString.h"
|
|
|
| +#include "wtf/text/AtomicStringTable.h"
|
| +
|
| #if OS(MACOSX)
|
|
|
| #include "wtf/text/CString.h"
|
| @@ -40,14 +42,14 @@ PassRefPtr<StringImpl> AtomicString::add(CFStringRef string)
|
| CFIndex length = CFStringGetLength(string);
|
|
|
| if (const LChar* ptr = reinterpret_cast<const LChar*>(CFStringGetCStringPtr(string, kCFStringEncodingISOLatin1)))
|
| - return add(ptr, length);
|
| + return AtomicStringTable::instance().add(ptr, length);
|
|
|
| if (const UniChar* ptr = CFStringGetCharactersPtr(string))
|
| - return add(reinterpret_cast<const UChar*>(ptr), length);
|
| + return AtomicStringTable::instance().add(reinterpret_cast<const UChar*>(ptr), length);
|
|
|
| Vector<UniChar, 1024> ucharBuffer(length);
|
| CFStringGetCharacters(string, CFRangeMake(0, length), ucharBuffer.data());
|
| - return add(reinterpret_cast<const UChar*>(ucharBuffer.data()), length);
|
| + return AtomicStringTable::instance().add(reinterpret_cast<const UChar*>(ucharBuffer.data()), length);
|
| }
|
|
|
| } // namespace WTF
|
|
|