Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Unified Diff: Source/WebCore/html/RadioInputType.cpp

Issue 9805002: Revert 105710 - Introduce RadioButtonGroup class to keep track of the group members and required st… (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1025/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/html/RadioInputType.h ('k') | Source/WebCore/html/TextFieldInputType.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « Source/WebCore/html/RadioInputType.h ('k') | Source/WebCore/html/TextFieldInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698