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

Unified Diff: third_party/WebKit/Source/core/html/forms/RadioButtonGroupScope.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/html/forms/RadioButtonGroupScope.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/RadioButtonGroupScope.cpp b/third_party/WebKit/Source/core/html/forms/RadioButtonGroupScope.cpp
index 2699ecfb041939ee685ec4f0c09b6d9e9546cf77..73dc097422dd661508b4e3b0c36249a6d26c8fb9 100644
--- a/third_party/WebKit/Source/core/html/forms/RadioButtonGroupScope.cpp
+++ b/third_party/WebKit/Source/core/html/forms/RadioButtonGroupScope.cpp
@@ -151,7 +151,7 @@ void RadioButtonGroup::remove(HTMLInputElement* button) {
bool wasValid = isValid();
DCHECK_EQ(it->value, button->isRequired());
updateRequiredButton(*it, false);
- m_members.remove(it);
+ m_members.erase(it);
if (m_checkedButton == button)
m_checkedButton = nullptr;

Powered by Google App Engine
This is Rietveld 408576698