| Index: Source/core/html/HTMLFormControlElement.cpp
|
| diff --git a/Source/core/html/HTMLFormControlElement.cpp b/Source/core/html/HTMLFormControlElement.cpp
|
| index 32dae58adfbb32421f714d24f1650b8738c5cad1..6029f3fe1e814339a8d896db5eb0e1bf69de265b 100644
|
| --- a/Source/core/html/HTMLFormControlElement.cpp
|
| +++ b/Source/core/html/HTMLFormControlElement.cpp
|
| @@ -266,25 +266,6 @@
|
| FormAssociatedElement::removedFrom(insertionPoint);
|
| }
|
|
|
| -void HTMLFormControlElement::willChangeForm()
|
| -{
|
| - formOwnerSetNeedsValidityCheck();
|
| - FormAssociatedElement::willChangeForm();
|
| -}
|
| -
|
| -void HTMLFormControlElement::didChangeForm()
|
| -{
|
| - formOwnerSetNeedsValidityCheck();
|
| - FormAssociatedElement::didChangeForm();
|
| -}
|
| -
|
| -void HTMLFormControlElement::formOwnerSetNeedsValidityCheck()
|
| -{
|
| - HTMLFormElement* form = formOwner();
|
| - if (form)
|
| - form->setNeedsValidityCheck();
|
| -}
|
| -
|
| void HTMLFormControlElement::setChangedSinceLastFormControlChangeEvent(bool changed)
|
| {
|
| m_wasChangedSinceLastFormControlChangeEvent = changed;
|
| @@ -488,7 +469,7 @@
|
|
|
| bool HTMLFormControlElement::checkValidity(WillBeHeapVector<RefPtrWillBeMember<FormAssociatedElement> >* unhandledInvalidControls)
|
| {
|
| - if (!willValidate() || isValidElement())
|
| + if (!willValidate() || isValidFormControlElement())
|
| return true;
|
| // An event handler can deref this object.
|
| RefPtrWillBeRawPtr<HTMLFormControlElement> protector(this);
|
| @@ -499,7 +480,7 @@
|
| return false;
|
| }
|
|
|
| -bool HTMLFormControlElement::isValidElement()
|
| +bool HTMLFormControlElement::isValidFormControlElement()
|
| {
|
| // If the following assertion fails, setNeedsValidityCheck() is not called
|
| // correctly when something which changes validity is updated.
|
| @@ -511,7 +492,6 @@
|
| {
|
| bool newIsValid = valid();
|
| if (willValidate() && newIsValid != m_isValid) {
|
| - formOwnerSetNeedsValidityCheck();
|
| // Update style for pseudo classes such as :valid :invalid.
|
| setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing::createWithExtraData(StyleChangeReason::PseudoClass, StyleChangeExtraData::Invalid));
|
| }
|
|
|