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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/RasterInvalidationTracking.h

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/platform/graphics/paint/RasterInvalidationTracking.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/RasterInvalidationTracking.h b/third_party/WebKit/Source/platform/graphics/paint/RasterInvalidationTracking.h
index 33ac5b550da5aeb355cfbd3fc233ae74859b0a56..7196960be14e98bb827c56bbf6296da5cec8fa8f 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/RasterInvalidationTracking.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/RasterInvalidationTracking.h
@@ -65,7 +65,7 @@ class PLATFORM_EXPORT RasterInvalidationTrackingMap {
void remove(TargetClass* key) {
auto it = m_invalidationTrackingMap.find(key);
if (it != m_invalidationTrackingMap.end())
- m_invalidationTrackingMap.remove(it);
+ m_invalidationTrackingMap.erase(it);
}
RasterInvalidationTracking& add(TargetClass* key) {

Powered by Google App Engine
This is Rietveld 408576698