Bug 1449631 part 8. Remove nsIDOMEventTarget::GetEventTargetParent. r=smaug

MozReview-Commit-ID: 5wQ2LYrjUxf
This commit is contained in:
Boris Zbarsky
2018-04-05 13:42:41 -04:00
parent 76ec8b0f6a
commit 5b75c1416d
74 changed files with 169 additions and 217 deletions

View File

@@ -511,19 +511,19 @@ HTMLTextAreaElement::IsDisabledForEvents(EventMessage aMessage)
return IsElementDisabledForEvents(aMessage, formFrame);
}
nsresult
void
HTMLTextAreaElement::GetEventTargetParent(EventChainPreVisitor& aVisitor)
{
aVisitor.mCanHandle = false;
if (IsDisabledForEvents(aVisitor.mEvent->mMessage)) {
return NS_OK;
return;
}
// Don't dispatch a second select event if we are already handling
// one.
if (aVisitor.mEvent->mMessage == eFormSelect) {
if (mHandlingSelect) {
return NS_OK;
return;
}
mHandlingSelect = true;
}
@@ -546,7 +546,7 @@ HTMLTextAreaElement::GetEventTargetParent(EventChainPreVisitor& aVisitor)
aVisitor.mWantsPreHandleEvent = true;
}
return nsGenericHTMLFormElementWithState::GetEventTargetParent(aVisitor);
nsGenericHTMLFormElementWithState::GetEventTargetParent(aVisitor);
}
nsresult