| Index: Source/core/html/HTMLFormControlElement.h
|
| diff --git a/Source/core/html/HTMLFormControlElement.h b/Source/core/html/HTMLFormControlElement.h
|
| index 4904ed4277696ea1cf8d3a5303831c933a472a73..f56ab7ee0d8a84523b2a5a02aeb2bc81b736e474 100644
|
| --- a/Source/core/html/HTMLFormControlElement.h
|
| +++ b/Source/core/html/HTMLFormControlElement.h
|
| @@ -33,6 +33,8 @@ class FormDataList;
|
| class HTMLFormElement;
|
| class ValidationMessageClient;
|
|
|
| +enum CheckValidityEventBehavior { CheckValidityDispatchNoEvent, CheckValidityDispatchInvalidEvent };
|
| +
|
| // HTMLFormControlElement is the default implementation of FormAssociatedElement,
|
| // and form-associated element implementations should use HTMLFormControlElement
|
| // unless there is a special reason.
|
| @@ -85,11 +87,10 @@ public:
|
| virtual void setActivatedSubmit(bool) { }
|
|
|
| virtual bool willValidate() const override;
|
| - virtual bool matchesValidityPseudoClasses() const override;
|
|
|
| void updateVisibleValidationMessage();
|
| void hideVisibleValidationMessage();
|
| - bool checkValidity(WillBeHeapVector<RefPtrWillBeMember<FormAssociatedElement> >* unhandledInvalidControls = 0);
|
| + bool checkValidity(WillBeHeapVector<RefPtrWillBeMember<FormAssociatedElement> >* unhandledInvalidControls = 0, CheckValidityEventBehavior = CheckValidityDispatchInvalidEvent);
|
| // This must be called when a validation constraint or control value is changed.
|
| void setNeedsValidityCheck();
|
| virtual void setCustomValidity(const String&) override final;
|
| @@ -157,6 +158,7 @@ private:
|
|
|
| virtual bool isDefaultButtonForForm() const override final;
|
| virtual bool isValidElement() override final;
|
| + virtual bool matchesValidityPseudoClasses() const override final;
|
| void updateAncestorDisabledState() const;
|
|
|
| bool isValidationMessageVisible() const;
|
|
|