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

Unified Diff: third_party/WebKit/Source/core/dom/ElementDataCache.cpp

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/dom/ElementDataCache.cpp
diff --git a/third_party/WebKit/Source/core/dom/ElementDataCache.cpp b/third_party/WebKit/Source/core/dom/ElementDataCache.cpp
index 2066e3521e87307e7b3cfff99fc05126eb9833a2..55cc4a9232e630ade84e4c6ac57cc7cc27b04de3 100644
--- a/third_party/WebKit/Source/core/dom/ElementDataCache.cpp
+++ b/third_party/WebKit/Source/core/dom/ElementDataCache.cpp
@@ -49,7 +49,7 @@ ElementDataCache::cachedShareableElementDataWithAttributes(
DCHECK(!attributes.isEmpty());
ShareableElementDataCache::ValueType* it =
- m_shareableElementDataCache.add(attributeHash(attributes), nullptr)
+ m_shareableElementDataCache.insert(attributeHash(attributes), nullptr)
.storedValue;
// FIXME: This prevents sharing when there's a hash collision.

Powered by Google App Engine
This is Rietveld 408576698