OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008, 2009 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
105 ASSERT(m_members.contains(button)); | 105 ASSERT(m_members.contains(button)); |
106 bool wasValid = isValid(); | 106 bool wasValid = isValid(); |
107 if (button->checked()) { | 107 if (button->checked()) { |
108 setCheckedButton(button); | 108 setCheckedButton(button); |
109 } else { | 109 } else { |
110 if (m_checkedButton == button) | 110 if (m_checkedButton == button) |
111 m_checkedButton = nullptr; | 111 m_checkedButton = nullptr; |
112 } | 112 } |
113 if (wasValid != isValid()) | 113 if (wasValid != isValid()) |
114 setNeedsValidityCheckForAllButtons(); | 114 setNeedsValidityCheckForAllButtons(); |
115 typedef WillBeHeapHashSet<RawPtrWillBeMember<HTMLInputElement> >::const_iter ator Iterator; | |
116 Iterator end = m_members.end(); | |
117 for (Iterator it = m_members.begin(); it != end; ++it) { | |
118 (*it)->didAffectSelector(AffectedSelectorChecked); | |
tkent
2014/07/28 03:12:09
Why is this change necessary?
Why don't we need Af
keishi
2014/09/02 03:49:54
Yes I meant to do AffectedSelectorIndeterminate
| |
119 } | |
115 } | 120 } |
116 | 121 |
117 void RadioButtonGroup::requiredAttributeChanged(HTMLInputElement* button) | 122 void RadioButtonGroup::requiredAttributeChanged(HTMLInputElement* button) |
118 { | 123 { |
119 ASSERT(button->isRadioButton()); | 124 ASSERT(button->isRadioButton()); |
120 ASSERT(m_members.contains(button)); | 125 ASSERT(m_members.contains(button)); |
121 bool wasValid = isValid(); | 126 bool wasValid = isValid(); |
122 if (button->isRequired()) { | 127 if (button->isRequired()) { |
123 ++m_requiredCount; | 128 ++m_requiredCount; |
124 } else { | 129 } else { |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
273 } | 278 } |
274 | 279 |
275 void RadioButtonGroupScope::trace(Visitor* visitor) | 280 void RadioButtonGroupScope::trace(Visitor* visitor) |
276 { | 281 { |
277 #if ENABLE(OILPAN) | 282 #if ENABLE(OILPAN) |
278 visitor->trace(m_nameToGroupMap); | 283 visitor->trace(m_nameToGroupMap); |
279 #endif | 284 #endif |
280 } | 285 } |
281 | 286 |
282 } // namespace | 287 } // namespace |
OLD | NEW |