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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/DisplayItemClient.cpp

Issue 2673543003: Migrate WTF::HashMap::remove() to ::erase() (Closed)
Patch Set: Created 3 years, 11 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/platform/graphics/paint/DisplayItemClient.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/DisplayItemClient.cpp b/third_party/WebKit/Source/platform/graphics/paint/DisplayItemClient.cpp
index a6a9372c21e517d2b039b92372a39741fcb13326..f8264990f93783d3b6418e90f75398559d19cb27 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/DisplayItemClient.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/DisplayItemClient.cpp
@@ -63,13 +63,13 @@ void DisplayItemClient::beginShouldKeepAlive(const void* owner) const {
void DisplayItemClient::endShouldKeepAlive() const {
if (displayItemClientsShouldKeepAlive) {
for (auto& item : *displayItemClientsShouldKeepAlive)
- item.value.remove(this);
+ item.value.erase(this);
}
}
void DisplayItemClient::endShouldKeepAliveAllClients(const void* owner) {
if (displayItemClientsShouldKeepAlive)
- displayItemClientsShouldKeepAlive->remove(owner);
+ displayItemClientsShouldKeepAlive->erase(owner);
}
void DisplayItemClient::endShouldKeepAliveAllClients() {

Powered by Google App Engine
This is Rietveld 408576698