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

Unified Diff: third_party/WebKit/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl

Issue 2693433002: Migrate WTF::HashMap::add() to ::insert() [final] (Closed)
Patch Set: more platform-specific references 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/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
diff --git a/third_party/WebKit/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl b/third_party/WebKit/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
index cd223572d9376a6a646d17847e77ff67ec0ef44b..1f7243f64ce0c823f2304b756aeb958b1be49b12 100644
--- a/third_party/WebKit/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
+++ b/third_party/WebKit/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
@@ -337,7 +337,7 @@ static bool borderImageLengthMatchesAllSides(
typedef CounterDirectiveMap::const_iterator Iterator;
Iterator end = parentMap->end();
for (Iterator it = parentMap->begin(); it != end; ++it) {
- CounterDirectives& directives = map.add(it->key, CounterDirectives()).storedValue->value;
+ CounterDirectives& directives = map.insert(it->key, CounterDirectives()).storedValue->value;
directives.inherit{{action}}(it->value);
}
}
@@ -360,7 +360,7 @@ static bool borderImageLengthMatchesAllSides(
AtomicString identifier(toCSSCustomIdentValue(pair.first()).value());
int value = toCSSPrimitiveValue(pair.second()).getIntValue();
CounterDirectives& directives =
- map.add(identifier, CounterDirectives()).storedValue->value;
+ map.insert(identifier, CounterDirectives()).storedValue->value;
{% if action == 'Reset' %}
directives.setResetValue(value);
{% else %}

Powered by Google App Engine
This is Rietveld 408576698