summaryrefslogtreecommitdiffstats
path: root/WebCore/html/CheckboxInputType.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/html/CheckboxInputType.cpp')
-rw-r--r--WebCore/html/CheckboxInputType.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/WebCore/html/CheckboxInputType.cpp b/WebCore/html/CheckboxInputType.cpp
index 1c7ea4b..572dde0 100644
--- a/WebCore/html/CheckboxInputType.cpp
+++ b/WebCore/html/CheckboxInputType.cpp
@@ -31,6 +31,7 @@
#include "config.h"
#include "CheckboxInputType.h"
+#include "HTMLInputElement.h"
#include <wtf/PassOwnPtr.h>
namespace WebCore {
@@ -45,4 +46,9 @@ const AtomicString& CheckboxInputType::formControlType() const
return InputTypeNames::checkbox();
}
+bool CheckboxInputType::valueMissing(const String&) const
+{
+ return !element()->checked();
+}
+
} // namespace WebCore