Index: Source/core/html/HTMLFormControlElement.h |
diff --git a/Source/core/html/HTMLFormControlElement.h b/Source/core/html/HTMLFormControlElement.h |
index 525ef0d254e12c52b10a70dae5ebce82553879fd..b0bb55f0847f89a81e9668de8dc8735bc993cd26 100644 |
--- a/Source/core/html/HTMLFormControlElement.h |
+++ b/Source/core/html/HTMLFormControlElement.h |
@@ -85,6 +85,7 @@ public: |
virtual void setActivatedSubmit(bool) { } |
virtual bool willValidate() const OVERRIDE; |
+ |
void updateVisibleValidationMessage(); |
void hideVisibleValidationMessage(); |
bool checkValidity(WillBeHeapVector<RefPtrWillBeMember<FormAssociatedElement> >* unhandledInvalidControls = 0); |
@@ -121,6 +122,8 @@ protected: |
virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; |
virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; |
virtual void removedFrom(ContainerNode*) OVERRIDE; |
+ virtual void willChangeForm() OVERRIDE; |
+ virtual void didChangeForm() OVERRIDE; |
virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE; |
virtual bool supportsFocus() const OVERRIDE; |
@@ -152,12 +155,15 @@ private: |
virtual short tabIndex() const OVERRIDE FINAL; |
virtual bool isDefaultButtonForForm() const OVERRIDE FINAL; |
- virtual bool isValidFormControlElement() OVERRIDE FINAL; |
+ virtual bool isValidElement() OVERRIDE FINAL; |
void updateAncestorDisabledState() const; |
bool isValidationMessageVisible() const; |
ValidationMessageClient* validationMessageClient() const; |
+ // Requests validity recalc for the form owner, if one exists. |
+ void formOwnerSetNeedsValidityCheck(); |
+ |
bool m_disabled : 1; |
bool m_isAutofilled : 1; |
bool m_isReadOnly : 1; |