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

Unified Diff: Source/core/html/forms/RadioInputType.cpp

Issue 394433002: Add :indeterminate pseudo class support for radio button input (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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
Index: Source/core/html/forms/RadioInputType.cpp
diff --git a/Source/core/html/forms/RadioInputType.cpp b/Source/core/html/forms/RadioInputType.cpp
index 9bfe52d6d293d4df45ee6b9b75fb52ab24a1f74e..f7c59f12673eb8f737f6f6b9ef46c28a103a84c8 100644
--- a/Source/core/html/forms/RadioInputType.cpp
+++ b/Source/core/html/forms/RadioInputType.cpp
@@ -197,7 +197,12 @@ bool RadioInputType::isRadioButton() const
bool RadioInputType::supportsIndeterminateAppearance() const
{
- return false;
+ return true;
+}
+
+bool RadioInputType::shouldAppearIndeterminate() const
+{
+ return !element().checkedRadioButtonForGroup();
}
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698