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

Unified Diff: Source/core/html/forms/CheckboxInputType.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/CheckboxInputType.cpp
diff --git a/Source/core/html/forms/CheckboxInputType.cpp b/Source/core/html/forms/CheckboxInputType.cpp
index 9a77643e4310ec4f3185b8def23842ab0da2a72f..da47ff3eb4f74e090628cf4c14618472be74f284 100644
--- a/Source/core/html/forms/CheckboxInputType.cpp
+++ b/Source/core/html/forms/CheckboxInputType.cpp
@@ -107,4 +107,9 @@ bool CheckboxInputType::supportsIndeterminateAppearance() const
return true;
}
+bool CheckboxInputType::shouldAppearIndeterminate() const
+{
+ return element().indeterminate();
+}
+
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698