Bug 1305458 Part11: Let HTMLInputElement delegate event handling to it's parent class. r=smaug

MozReview-Commit-ID: 3Ms8Rt7Fqny
This commit is contained in:
Stone Shih
2016-11-01 15:36:04 +08:00
parent 919f04d4fe
commit c21b59a68a

View File

@@ -3762,7 +3762,7 @@ HTMLInputElement::GetEventTargetParent(EventChainPreVisitor& aVisitor)
//FIXME Allow submission etc. also when there is no prescontext, Bug 329509.
if (!aVisitor.mPresContext) {
return nsGenericHTMLElement::GetEventTargetParent(aVisitor);
return nsGenericHTMLFormElementWithState::GetEventTargetParent(aVisitor);
}
//
// Web pages expect the value of a radio button or checkbox to be set
@@ -4033,7 +4033,7 @@ nsresult
HTMLInputElement::PreHandleEvent(EventChainVisitor& aVisitor)
{
if (!aVisitor.mPresContext) {
return nsGenericHTMLElement::PreHandleEvent(aVisitor);
return nsGenericHTMLFormElementWithState::PreHandleEvent(aVisitor);
}
nsresult rv;
if (aVisitor.mItemFlags & NS_PRE_HANDLE_BLUR_EVENT) {