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

Unified Diff: third_party/WebKit/Source/core/html/HTMLCollection.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
Index: third_party/WebKit/Source/core/html/HTMLCollection.h
diff --git a/third_party/WebKit/Source/core/html/HTMLCollection.h b/third_party/WebKit/Source/core/html/HTMLCollection.h
index 3834d387c7df3f4d0333b1b762daa2ef7084dbd4..dd02557cd429bebc397d7aeaa04000dba395cb45 100644
--- a/third_party/WebKit/Source/core/html/HTMLCollection.h
+++ b/third_party/WebKit/Source/core/html/HTMLCollection.h
@@ -149,7 +149,7 @@ class CORE_EXPORT HTMLCollection
const AtomicString& key,
Element* element) {
Member<HeapVector<Member<Element>>>& vector =
- map.add(key.impl(), nullptr).storedValue->value;
+ map.insert(key.impl(), nullptr).storedValue->value;
if (!vector)
vector = new HeapVector<Member<Element>>;
vector->push_back(element);

Powered by Google App Engine
This is Rietveld 408576698