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

Unified Diff: third_party/WebKit/Source/core/css/RuleFeature.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/RuleFeature.cpp
diff --git a/third_party/WebKit/Source/core/css/RuleFeature.cpp b/third_party/WebKit/Source/core/css/RuleFeature.cpp
index ae095962c7f317c5a2bbe8aeb5ed629168eac565..31227852af3a4d175212a7e44d971750f30ffc63 100644
--- a/third_party/WebKit/Source/core/css/RuleFeature.cpp
+++ b/third_party/WebKit/Source/core/css/RuleFeature.cpp
@@ -229,7 +229,7 @@ InvalidationSet& ensureInvalidationSet(
const AtomicString& key,
InvalidationType type) {
RefPtr<InvalidationSet>& invalidationSet =
- map.add(key, nullptr).storedValue->value;
+ map.insert(key, nullptr).storedValue->value;
return storedInvalidationSet(invalidationSet, type);
}
@@ -241,7 +241,7 @@ InvalidationSet& ensureInvalidationSet(
CSSSelector::PseudoType key,
InvalidationType type) {
RefPtr<InvalidationSet>& invalidationSet =
- map.add(key, nullptr).storedValue->value;
+ map.insert(key, nullptr).storedValue->value;
return storedInvalidationSet(invalidationSet, type);
}
« no previous file with comments | « third_party/WebKit/Source/core/css/FontFaceCache.cpp ('k') | third_party/WebKit/Source/core/css/RuleSet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698