diff options
Diffstat (limited to 'WebCore/html/HTMLInputElement.h')
-rw-r--r-- | WebCore/html/HTMLInputElement.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/WebCore/html/HTMLInputElement.h b/WebCore/html/HTMLInputElement.h index 40930ac..c3b0a73 100644 --- a/WebCore/html/HTMLInputElement.h +++ b/WebCore/html/HTMLInputElement.h @@ -131,8 +131,12 @@ public: bool checked() const { return m_checked; } void setChecked(bool, bool sendChangeEvent = false); + + // 'indeterminate' is a state independent of the checked state that causes the control to draw in a way that hides the actual state. + bool allowsIndeterminate() const { return inputType() == CHECKBOX || inputType() == RADIO; } bool indeterminate() const { return m_indeterminate; } void setIndeterminate(bool); + virtual int size() const; virtual const AtomicString& formControlType() const; void setType(const String&); @@ -257,8 +261,6 @@ public: virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const; - virtual bool willValidate() const; - // Converts the specified string to a floating number. // If the conversion fails, the return value is false. Take care that leading or trailing unnecessary characters make failures. This returns false for an empty string input. // The double* parameter may be 0. @@ -291,6 +293,7 @@ private: virtual bool isOptionalFormControl() const { return !isRequiredFormControl(); } virtual bool isRequiredFormControl() const; + virtual bool recalcWillValidate() const; PassRefPtr<HTMLFormElement> createTemporaryFormForIsIndex(); // Helper for getAllowedValueStep(); |