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

Unified Diff: third_party/WebKit/Source/core/dom/NodeListsNodeData.h

Issue 2671933002: Migrate WTF::HashMap::add() to ::insert() (Closed)
Patch Set: rebase, add TODOs Created 3 years, 10 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.cpp ('k') | third_party/WebKit/Source/core/dom/NthIndexCache.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/NodeListsNodeData.h
diff --git a/third_party/WebKit/Source/core/dom/NodeListsNodeData.h b/third_party/WebKit/Source/core/dom/NodeListsNodeData.h
index 53c7518768ddfaa7bb5f909575ff818d6bbcfb8c..ae472b0f0be10b5c38fec45ff91da1becf4fad00 100644
--- a/third_party/WebKit/Source/core/dom/NodeListsNodeData.h
+++ b/third_party/WebKit/Source/core/dom/NodeListsNodeData.h
@@ -89,8 +89,8 @@ class NodeListsNodeData final : public GarbageCollected<NodeListsNodeData> {
CollectionType collectionType,
const AtomicString& name) {
DCHECK(ThreadState::current()->isGCForbidden());
- NodeListAtomicNameCacheMap::AddResult result =
- m_atomicNameCaches.add(namedNodeListKey(collectionType, name), nullptr);
+ NodeListAtomicNameCacheMap::AddResult result = m_atomicNameCaches.insert(
+ namedNodeListKey(collectionType, name), nullptr);
if (!result.isNewEntry) {
return static_cast<T*>(result.storedValue->value.get());
}
@@ -103,7 +103,7 @@ class NodeListsNodeData final : public GarbageCollected<NodeListsNodeData> {
template <typename T>
T* addCache(ContainerNode& node, CollectionType collectionType) {
DCHECK(ThreadState::current()->isGCForbidden());
- NodeListAtomicNameCacheMap::AddResult result = m_atomicNameCaches.add(
+ NodeListAtomicNameCacheMap::AddResult result = m_atomicNameCaches.insert(
namedNodeListKey(collectionType, starAtom), nullptr);
if (!result.isNewEntry) {
return static_cast<T*>(result.storedValue->value.get());
@@ -126,7 +126,7 @@ class NodeListsNodeData final : public GarbageCollected<NodeListsNodeData> {
DCHECK(ThreadState::current()->isGCForbidden());
QualifiedName name(nullAtom, localName, namespaceURI);
TagCollectionCacheNS::AddResult result =
- m_tagCollectionCacheNS.add(name, nullptr);
+ m_tagCollectionCacheNS.insert(name, nullptr);
if (!result.isNewEntry)
return result.storedValue->value;
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.cpp ('k') | third_party/WebKit/Source/core/dom/NthIndexCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698