| 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(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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 275 } | 280 } | 
| 276 | 281 | 
| 277 void RadioButtonGroupScope::trace(Visitor* visitor) | 282 void RadioButtonGroupScope::trace(Visitor* visitor) | 
| 278 { | 283 { | 
| 279 #if ENABLE(OILPAN) | 284 #if ENABLE(OILPAN) | 
| 280     visitor->trace(m_nameToGroupMap); | 285     visitor->trace(m_nameToGroupMap); | 
| 281 #endif | 286 #endif | 
| 282 } | 287 } | 
| 283 | 288 | 
| 284 } // namespace | 289 } // namespace | 
| OLD | NEW | 
|---|