| Index: Source/core/html/forms/RadioButtonGroupScope.cpp
|
| diff --git a/Source/core/html/forms/RadioButtonGroupScope.cpp b/Source/core/html/forms/RadioButtonGroupScope.cpp
|
| index 4e4c55a50d4bfef96213a4bceae6ebecd33ac5cb..c2deda3266fb1726f6011ac83d42961790aa0444 100644
|
| --- a/Source/core/html/forms/RadioButtonGroupScope.cpp
|
| +++ b/Source/core/html/forms/RadioButtonGroupScope.cpp
|
| @@ -113,10 +113,8 @@ void RadioButtonGroup::updateCheckedState(HTMLInputElement* button)
|
| }
|
| if (wasValid != isValid())
|
| setNeedsValidityCheckForAllButtons();
|
| - typedef WillBeHeapHashSet<RawPtrWillBeMember<HTMLInputElement> >::const_iterator Iterator;
|
| - Iterator end = m_members.end();
|
| - for (Iterator it = m_members.begin(); it != end; ++it) {
|
| - (*it)->pseudoStateChanged(CSSSelector::PseudoIndeterminate);
|
| + for (const auto& inputElement : m_members) {
|
| + inputElement->pseudoStateChanged(CSSSelector::PseudoIndeterminate);
|
| }
|
| }
|
|
|
| @@ -165,10 +163,8 @@ void RadioButtonGroup::remove(HTMLInputElement* button)
|
|
|
| void RadioButtonGroup::setNeedsValidityCheckForAllButtons()
|
| {
|
| - typedef WillBeHeapHashSet<RawPtrWillBeMember<HTMLInputElement> >::const_iterator Iterator;
|
| - Iterator end = m_members.end();
|
| - for (Iterator it = m_members.begin(); it != end; ++it) {
|
| - HTMLInputElement* button = *it;
|
| + for (const auto& inputElement : m_members) {
|
| + HTMLInputElement* button = inputElement;
|
| ASSERT(button->type() == InputTypeNames::radio);
|
| button->setNeedsValidityCheck();
|
| }
|
|
|