| Index: Source/core/html/HTMLFormControlElement.cpp
|
| diff --git a/Source/core/html/HTMLFormControlElement.cpp b/Source/core/html/HTMLFormControlElement.cpp
|
| index 2018311b7fbc74410bd3e13c90d951406cbf33bf..ce68f5ae6eec41b74a4749204756126e51bd82bb 100644
|
| --- a/Source/core/html/HTMLFormControlElement.cpp
|
| +++ b/Source/core/html/HTMLFormControlElement.cpp
|
| @@ -398,10 +398,12 @@ void HTMLFormControlElement::hideVisibleValidationMessage()
|
| m_validationMessage->requestToHideMessage();
|
| }
|
|
|
| -bool HTMLFormControlElement::checkValidity(Vector<RefPtr<FormAssociatedElement> >* unhandledInvalidControls)
|
| +bool HTMLFormControlElement::checkValidity(Vector<RefPtr<FormAssociatedElement> >* unhandledInvalidControls, CheckValidityDispatchEvents dispatchEvents)
|
| {
|
| if (!willValidate() || isValidFormControlElement())
|
| return true;
|
| + if (dispatchEvents == CheckValidityDispatchEventsNone)
|
| + return false;
|
| // An event handler can deref this object.
|
| RefPtr<HTMLFormControlElement> protector(this);
|
| RefPtr<Document> originalDocument(document());
|
|
|