Bug 41037: Fix my regression that was causing forms to submit twice! r=nisheeth (thanks pinkerton, nisheeth, and leger for the quick turnaround!)

This commit is contained in:
pollmann%netscape.com 2000-05-31 02:24:48 +00:00
Родитель 9854479716
Коммит d9bdd0843a
2 изменённых файлов: 4 добавлений и 26 удалений

Просмотреть файл

@ -578,19 +578,8 @@ nsGfxButtonControlFrame::HandleEvent(nsIPresContext* aPresContext,
// from being called. The nsFrame::HandleEvent causes the button label
// to be selected (Drawn with an XOR rectangle over the label)
// if disabled do nothing
if (mRenderer.isDisabled()) {
return NS_OK;
}
// lets see if the button was clicked
switch (aEvent->message) {
case NS_MOUSE_LEFT_CLICK:
if (nsEventStatus_eConsumeNoDefault != *aEventStatus) {
MouseClicked(aPresContext);
}
break;
}
// Do nothing here, nsHTMLInputElement::HandleDOMEvent
// takes cares of calling MouseClicked for us.
return NS_OK;

Просмотреть файл

@ -578,19 +578,8 @@ nsGfxButtonControlFrame::HandleEvent(nsIPresContext* aPresContext,
// from being called. The nsFrame::HandleEvent causes the button label
// to be selected (Drawn with an XOR rectangle over the label)
// if disabled do nothing
if (mRenderer.isDisabled()) {
return NS_OK;
}
// lets see if the button was clicked
switch (aEvent->message) {
case NS_MOUSE_LEFT_CLICK:
if (nsEventStatus_eConsumeNoDefault != *aEventStatus) {
MouseClicked(aPresContext);
}
break;
}
// Do nothing here, nsHTMLInputElement::HandleDOMEvent
// takes cares of calling MouseClicked for us.
return NS_OK;