| Index: Source/WebCore/html/RadioInputType.cpp
|
| ===================================================================
|
| --- Source/WebCore/html/RadioInputType.cpp (revision 111481)
|
| +++ Source/WebCore/html/RadioInputType.cpp (working copy)
|
| @@ -48,7 +48,7 @@
|
|
|
| bool RadioInputType::valueMissing(const String&) const
|
| {
|
| - return element()->checkedRadioButtons().isInRequiredGroup(element()) && !element()->checkedRadioButtons().checkedButtonForGroup(element()->name());
|
| + return !element()->checkedRadioButtons().checkedButtonForGroup(element()->name());
|
| }
|
|
|
| String RadioInputType::valueMissingText() const
|
| @@ -133,6 +133,12 @@
|
| return element()->checked() || !element()->checkedRadioButtons().checkedButtonForGroup(element()->name());
|
| }
|
|
|
| +void RadioInputType::attach()
|
| +{
|
| + InputType::attach();
|
| + element()->updateCheckedRadioButtons();
|
| +}
|
| +
|
| bool RadioInputType::shouldSendChangeEventAfterCheckedChanged()
|
| {
|
| // Don't send a change event for a radio button that's getting unchecked.
|
|
|