зеркало из https://github.com/mozilla/pjs.git
Backing out change made while tree was closed
This commit is contained in:
Родитель
b0ffb501bc
Коммит
279b5cf069
|
@ -315,20 +315,18 @@ nsGfxTextControlFrame::EnterPressed(nsIPresContext& aPresContext)
|
|||
if (mFormFrame && mFormFrame->CanSubmit(*this)) {
|
||||
nsIContent *formContent = nsnull;
|
||||
|
||||
nsEventStatus status = nsEventStatus_eIgnore;
|
||||
|
||||
mFormFrame->GetContent(&formContent);
|
||||
if (nsnull != formContent) {
|
||||
nsEvent event;
|
||||
nsEventStatus status = nsEventStatus_eIgnore;
|
||||
|
||||
event.eventStructType = NS_EVENT;
|
||||
event.message = NS_FORM_SUBMIT;
|
||||
formContent->HandleDOMEvent(aPresContext, &event, nsnull, NS_EVENT_FLAG_INIT, status);
|
||||
NS_RELEASE(formContent);
|
||||
}
|
||||
|
||||
if (nsEventStatus_eConsumeNoDefault != status) {
|
||||
mFormFrame->OnSubmit(&aPresContext, this);
|
||||
}
|
||||
mFormFrame->OnSubmit(&aPresContext, this);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче