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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutCounter.cpp

Issue 2759703002: Migrate WTF::HashMap::remove() to ::erase() (Closed)
Patch Set: rebase, fix one platform-specific reference Created 3 years, 9 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/layout/LayoutCounter.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutCounter.cpp b/third_party/WebKit/Source/core/layout/LayoutCounter.cpp
index a37e1ca0d4a4062ad8f6c89f8ef4926eaf1d30b2..dbb6c98a448e16f75d9864bef7cc97da83f33671 100644
--- a/third_party/WebKit/Source/core/layout/LayoutCounter.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutCounter.cpp
@@ -523,7 +523,7 @@ void LayoutCounter::destroyCounterNodes(LayoutObject& owner) {
for (CounterMap::const_iterator it = map->begin(); it != end; ++it) {
destroyCounterNodeWithoutMapRemoval(it->key, it->value.get());
}
- maps.remove(mapsIterator);
+ maps.erase(mapsIterator);
owner.setHasCounterNodeMap(false);
}
@@ -536,7 +536,7 @@ void LayoutCounter::destroyCounterNode(LayoutObject& owner,
if (mapIterator == map->end())
return;
destroyCounterNodeWithoutMapRemoval(identifier, mapIterator->value.get());
- map->remove(mapIterator);
+ map->erase(mapIterator);
// We do not delete "map" here even if empty because we expect to reuse
// it soon. In order for a layoutObject to lose all its counters permanently,
// a style change for the layoutObject involving removal of all counter
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp ('k') | third_party/WebKit/Source/core/layout/TextAutosizer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698