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

Unified Diff: third_party/WebKit/Source/core/dom/UserActionElementSet.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/dom/UserActionElementSet.cpp
diff --git a/third_party/WebKit/Source/core/dom/UserActionElementSet.cpp b/third_party/WebKit/Source/core/dom/UserActionElementSet.cpp
index c9ef6bf227ef4923cbc2fa86c4df7d5a6fd4fbbc..d9104a63535d1026822da8dc72e8e2d371f2728a 100644
--- a/third_party/WebKit/Source/core/dom/UserActionElementSet.cpp
+++ b/third_party/WebKit/Source/core/dom/UserActionElementSet.cpp
@@ -82,7 +82,7 @@ inline void UserActionElementSet::clearFlags(Element* element, unsigned flags) {
unsigned updated = found->value & ~flags;
if (!updated) {
element->setUserActionElement(false);
- m_elements.remove(found);
+ m_elements.erase(found);
return;
}

Powered by Google App Engine
This is Rietveld 408576698