From 5e2bc6953fe6923165b8a5d7679939693a1d58d6 Mon Sep 17 00:00:00 2001 From: Steve Block Date: Fri, 5 Feb 2010 14:27:46 +0000 Subject: Merge webkit.org at r54340 : Initial merge by git Change-Id: Ib489d2ff91186ea3652522e1d586e54416a2cf44 --- WebCore/html/HTMLFormControlElement.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'WebCore/html/HTMLFormControlElement.h') diff --git a/WebCore/html/HTMLFormControlElement.h b/WebCore/html/HTMLFormControlElement.h index 358546b..117087b 100644 --- a/WebCore/html/HTMLFormControlElement.h +++ b/WebCore/html/HTMLFormControlElement.h @@ -63,7 +63,7 @@ public: virtual void dispatchFormControlChangeEvent(); - bool disabled() const; + bool disabled() const { return m_disabled; } void setDisabled(bool); virtual bool supportsFocus() const; @@ -109,19 +109,22 @@ public: virtual bool willValidate() const; String validationMessage(); bool checkValidity(); - void updateValidity(); + // This must be called when a validation constraint or control value is changed. + void setNeedsValidityCheck(); void setCustomValidity(const String&); virtual bool valueMissing() const { return false; } virtual bool patternMismatch() const { return false; } virtual bool tooLong() const { return false; } - void formDestroyed() { m_form = 0; } + void formDestroyed(); virtual void dispatchFocusEvent(); virtual void dispatchBlurEvent(); protected: void removeFromForm(); + // This must be called any time the result of willValidate() has changed. + void setNeedsWillValidateCheck(); private: virtual HTMLFormElement* virtualForm() const; @@ -130,6 +133,7 @@ private: HTMLFormElement* m_form; OwnPtr m_validityState; + bool m_hasName : 1; bool m_disabled : 1; bool m_readOnly : 1; bool m_required : 1; -- cgit v1.1