| Index: Source/core/html/HTMLFormControlElement.cpp
|
| diff --git a/Source/core/html/HTMLFormControlElement.cpp b/Source/core/html/HTMLFormControlElement.cpp
|
| index 3526e51947edbc61ba26f5b8826b2fe9d2bd844c..d0b933ef8e7678445183ffcec72a861ebe09657c 100644
|
| --- a/Source/core/html/HTMLFormControlElement.cpp
|
| +++ b/Source/core/html/HTMLFormControlElement.cpp
|
| @@ -486,10 +486,12 @@ ValidationMessageClient* HTMLFormControlElement::validationMessageClient() const
|
| return &page->validationMessageClient();
|
| }
|
|
|
| -bool HTMLFormControlElement::checkValidity(WillBeHeapVector<RefPtrWillBeMember<FormAssociatedElement> >* unhandledInvalidControls)
|
| +bool HTMLFormControlElement::checkValidity(WillBeHeapVector<RefPtrWillBeMember<FormAssociatedElement> >* unhandledInvalidControls, CheckValidityEventBehavior eventBehavior)
|
| {
|
| if (!willValidate() || isValidElement())
|
| return true;
|
| + if (eventBehavior != CheckValidityDispatchInvalidEvent)
|
| + return false;
|
| // An event handler can deref this object.
|
| RefPtrWillBeRawPtr<HTMLFormControlElement> protector(this);
|
| RefPtrWillBeRawPtr<Document> originalDocument(document());
|
|
|