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

Unified Diff: third_party/WebKit/Source/core/css/RuleSet.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/RuleSet.cpp
diff --git a/third_party/WebKit/Source/core/css/RuleSet.cpp b/third_party/WebKit/Source/core/css/RuleSet.cpp
index 5ad310f6ac30424484b17c5e82a41a9adffcb1d6..8885cbdbd354535664a9b14cd8f2ca7a7b2038ef 100644
--- a/third_party/WebKit/Source/core/css/RuleSet.cpp
+++ b/third_party/WebKit/Source/core/css/RuleSet.cpp
@@ -139,7 +139,7 @@ void RuleSet::addToRuleSet(const AtomicString& key,
PendingRuleMap& map,
const RuleData& ruleData) {
Member<HeapLinkedStack<RuleData>>& rules =
- map.add(key, nullptr).storedValue->value;
+ map.insert(key, nullptr).storedValue->value;
if (!rules)
rules = new HeapLinkedStack<RuleData>;
rules->push(ruleData);
@@ -351,7 +351,7 @@ void RuleSet::compactPendingRules(PendingRuleMap& pendingMap,
for (auto& item : pendingMap) {
HeapLinkedStack<RuleData>* pendingRules = item.value.release();
CompactRuleMap::ValueType* compactRules =
- compactMap.add(item.key, nullptr).storedValue;
+ compactMap.insert(item.key, nullptr).storedValue;
HeapTerminatedArrayBuilder<RuleData> builder(compactRules->value.release());
builder.grow(pendingRules->size());
« no previous file with comments | « third_party/WebKit/Source/core/css/RuleFeature.cpp ('k') | third_party/WebKit/Source/core/css/StyleSheetContents.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698