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

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp

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/core/css/resolver/StyleBuilderConverter.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp b/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
index 8462cb668bf409ad52c09d9971d5f5e75d98faff..46e06da84bc3c03f5131df863e6d7b4ed7c55141 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
@@ -674,10 +674,10 @@ static void convertGridLineNamesList(
for (auto& namedGridLineValue : toCSSValueList(value)) {
String namedGridLine = toCSSCustomIdentValue(*namedGridLineValue).value();
NamedGridLinesMap::AddResult result =
- namedGridLines.add(namedGridLine, Vector<size_t>());
+ namedGridLines.insert(namedGridLine, Vector<size_t>());
result.storedValue->value.push_back(currentNamedGridLine);
OrderedNamedGridLines::AddResult orderedInsertionResult =
- orderedNamedGridLines.add(currentNamedGridLine, Vector<String>());
+ orderedNamedGridLines.insert(currentNamedGridLine, Vector<String>());
orderedInsertionResult.storedValue->value.push_back(namedGridLine);
}
}
@@ -762,7 +762,7 @@ void StyleBuilderConverter::convertOrderedNamedGridLinesMapToNamedGridLinesMap(
for (auto& orderedNamedGridLine : orderedNamedGridLines) {
for (auto& lineName : orderedNamedGridLine.value) {
NamedGridLinesMap::AddResult startResult =
- namedGridLines.add(lineName, Vector<size_t>());
+ namedGridLines.insert(lineName, Vector<size_t>());
startResult.storedValue->value.push_back(orderedNamedGridLine.key);
}
}
@@ -781,15 +781,15 @@ void StyleBuilderConverter::createImplicitNamedGridLinesFromGridArea(
GridSpan areaSpan = direction == ForRows ? namedGridAreaEntry.value.rows
: namedGridAreaEntry.value.columns;
{
- NamedGridLinesMap::AddResult startResult = namedGridLines.add(
+ NamedGridLinesMap::AddResult startResult = namedGridLines.insert(
namedGridAreaEntry.key + "-start", Vector<size_t>());
startResult.storedValue->value.push_back(areaSpan.startLine());
std::sort(startResult.storedValue->value.begin(),
startResult.storedValue->value.end());
}
{
- NamedGridLinesMap::AddResult endResult =
- namedGridLines.add(namedGridAreaEntry.key + "-end", Vector<size_t>());
+ NamedGridLinesMap::AddResult endResult = namedGridLines.insert(
+ namedGridAreaEntry.key + "-end", Vector<size_t>());
endResult.storedValue->value.push_back(areaSpan.endLine());
std::sort(endResult.storedValue->value.begin(),
endResult.storedValue->value.end());
« no previous file with comments | « third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698