From fc0a5b36d77d98558f1756366b962183f3e5544f Mon Sep 17 00:00:00 2001 From: "rods%netscape.com" Date: Mon, 11 Dec 2000 20:07:50 +0000 Subject: [PATCH] smoketest blocker, an event is cancelled when it is equal to nsEventStatus_eConsumeNoDefault a=joki git-svn-id: svn://10.0.0.236/trunk@83488 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/html/content/src/nsHTMLInputElement.cpp | 2 +- mozilla/layout/html/content/src/nsHTMLInputElement.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/content/html/content/src/nsHTMLInputElement.cpp b/mozilla/content/html/content/src/nsHTMLInputElement.cpp index a186a3aaf67..21be8eea915 100644 --- a/mozilla/content/html/content/src/nsHTMLInputElement.cpp +++ b/mozilla/content/html/content/src/nsHTMLInputElement.cpp @@ -913,7 +913,7 @@ nsHTMLInputElement::HandleDOMEvent(nsIPresContext* aPresContext, aFlags, aEventStatus); // now check to see if the event was "cancelled" - if (nsEventStatus_eConsumeNoDefault != *aEventStatus && checkWasSet && + if (nsEventStatus_eConsumeNoDefault == *aEventStatus && checkWasSet && (type == NS_FORM_INPUT_CHECKBOX || type == NS_FORM_INPUT_RADIO)) { // if it was cancelled and a radio button, then set the old selceted btn to TRUE //. if it is a checkbox then set it to it's original value diff --git a/mozilla/layout/html/content/src/nsHTMLInputElement.cpp b/mozilla/layout/html/content/src/nsHTMLInputElement.cpp index a186a3aaf67..21be8eea915 100644 --- a/mozilla/layout/html/content/src/nsHTMLInputElement.cpp +++ b/mozilla/layout/html/content/src/nsHTMLInputElement.cpp @@ -913,7 +913,7 @@ nsHTMLInputElement::HandleDOMEvent(nsIPresContext* aPresContext, aFlags, aEventStatus); // now check to see if the event was "cancelled" - if (nsEventStatus_eConsumeNoDefault != *aEventStatus && checkWasSet && + if (nsEventStatus_eConsumeNoDefault == *aEventStatus && checkWasSet && (type == NS_FORM_INPUT_CHECKBOX || type == NS_FORM_INPUT_RADIO)) { // if it was cancelled and a radio button, then set the old selceted btn to TRUE //. if it is a checkbox then set it to it's original value