Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Unified Diff: third_party/WebKit/Source/wtf/text/AtomicStringCF.cpp

Issue 2110813003: Move all the AtomicString table into AtomicStringTable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix comments. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
« no previous file with comments | « third_party/WebKit/Source/wtf/text/AtomicString.cpp ('k') | third_party/WebKit/Source/wtf/text/AtomicStringTable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698