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

Unified Diff: third_party/WebKit/Source/core/css/resolver/MatchedPropertiesCache.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/css/resolver/MatchedPropertiesCache.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/MatchedPropertiesCache.cpp b/third_party/WebKit/Source/core/css/resolver/MatchedPropertiesCache.cpp
index 676c213eef5990c0723ef6470f5891d85f84cfb6..cec28d7dd8d94766b1b44c1469c58153c564e0db 100644
--- a/third_party/WebKit/Source/core/css/resolver/MatchedPropertiesCache.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/MatchedPropertiesCache.cpp
@@ -86,7 +86,7 @@ void MatchedPropertiesCache::add(const ComputedStyle& style,
unsigned hash,
const MatchedPropertiesVector& properties) {
ASSERT(hash);
- Cache::AddResult addResult = m_cache.add(hash, nullptr);
+ Cache::AddResult addResult = m_cache.insert(hash, nullptr);
if (addResult.isNewEntry)
addResult.storedValue->value = new CachedMatchedProperties;

Powered by Google App Engine
This is Rietveld 408576698