| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 setCheckedButton(button); | 109 setCheckedButton(button); |
| 110 } else { | 110 } else { |
| 111 if (m_checkedButton == button) | 111 if (m_checkedButton == button) |
| 112 m_checkedButton = nullptr; | 112 m_checkedButton = nullptr; |
| 113 } | 113 } |
| 114 if (wasValid != isValid()) | 114 if (wasValid != isValid()) |
| 115 setNeedsValidityCheckForAllButtons(); | 115 setNeedsValidityCheckForAllButtons(); |
| 116 typedef WillBeHeapHashSet<RawPtrWillBeMember<HTMLInputElement> >::const_iter
ator Iterator; | 116 typedef WillBeHeapHashSet<RawPtrWillBeMember<HTMLInputElement> >::const_iter
ator Iterator; |
| 117 Iterator end = m_members.end(); | 117 Iterator end = m_members.end(); |
| 118 for (Iterator it = m_members.begin(); it != end; ++it) { | 118 for (Iterator it = m_members.begin(); it != end; ++it) { |
| 119 (*it)->didAffectSelector(AffectedSelectorIndeterminate); | 119 (*it)->didAffectSelector(StyleChangeReasonForTracing::createWithExtraDat
a(StyleChangeReason::PseudoClass, StyleChangeExtraData::Indeterminate), Affected
SelectorIndeterminate); |
| 120 } | 120 } |
| 121 } | 121 } |
| 122 | 122 |
| 123 void RadioButtonGroup::requiredAttributeChanged(HTMLInputElement* button) | 123 void RadioButtonGroup::requiredAttributeChanged(HTMLInputElement* button) |
| 124 { | 124 { |
| 125 ASSERT(button->type() == InputTypeNames::radio); | 125 ASSERT(button->type() == InputTypeNames::radio); |
| 126 ASSERT(m_members.contains(button)); | 126 ASSERT(m_members.contains(button)); |
| 127 bool wasValid = isValid(); | 127 bool wasValid = isValid(); |
| 128 if (button->isRequired()) { | 128 if (button->isRequired()) { |
| 129 ++m_requiredCount; | 129 ++m_requiredCount; |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 } | 281 } |
| 282 | 282 |
| 283 void RadioButtonGroupScope::trace(Visitor* visitor) | 283 void RadioButtonGroupScope::trace(Visitor* visitor) |
| 284 { | 284 { |
| 285 #if ENABLE(OILPAN) | 285 #if ENABLE(OILPAN) |
| 286 visitor->trace(m_nameToGroupMap); | 286 visitor->trace(m_nameToGroupMap); |
| 287 #endif | 287 #endif |
| 288 } | 288 } |
| 289 | 289 |
| 290 } // namespace | 290 } // namespace |
| OLD | NEW |