Lines Matching refs:button

72 void RadioButtonGroup::setCheckedButton(HTMLInputElement* button)
75 if (oldCheckedButton == button)
77 m_checkedButton = button;
82 void RadioButtonGroup::add(HTMLInputElement* button)
84 ASSERT(button->type() == InputTypeNames::radio);
85 if (!m_members.add(button).isNewEntry)
88 if (button->isRequired())
90 if (button->checked())
91 setCheckedButton(button);
97 // A radio button not in a group is always valid. We need to make it
99 button->setNeedsValidityCheck();
103 void RadioButtonGroup::updateCheckedState(HTMLInputElement* button)
105 ASSERT(button->type() == InputTypeNames::radio);
106 ASSERT(m_members.contains(button));
108 if (button->checked()) {
109 setCheckedButton(button);
111 if (m_checkedButton == button)
123 void RadioButtonGroup::requiredAttributeChanged(HTMLInputElement* button)
125 ASSERT(button->type() == InputTypeNames::radio);
126 ASSERT(m_members.contains(button));
128 if (button->isRequired()) {
138 void RadioButtonGroup::remove(HTMLInputElement* button)
140 ASSERT(button->type() == InputTypeNames::radio);
141 WillBeHeapHashSet<RawPtrWillBeMember<HTMLInputElement> >::iterator it = m_members.find(button);
146 if (button->isRequired()) {
150 if (m_checkedButton == button)
160 // A radio button not in a group is always valid. We need to make it
162 button->setNeedsValidityCheck();
171 HTMLInputElement* button = *it;
172 ASSERT(button->type() == InputTypeNames::radio);
173 button->setNeedsValidityCheck();
177 bool RadioButtonGroup::contains(HTMLInputElement* button) const
179 return m_members.contains(button);