diff --git a/content/events/src/nsDOMEvent.cpp b/content/events/src/nsDOMEvent.cpp index 8bdbc052cab9..b043d1fa17ad 100644 --- a/content/events/src/nsDOMEvent.cpp +++ b/content/events/src/nsDOMEvent.cpp @@ -601,28 +601,6 @@ nsDOMEvent::IsDispatchStopped(PRBool* aIsDispatchStopped) return NS_OK; } -NS_IMETHODIMP -nsDOMEvent::IsHandled(PRBool* aIsHandled) -{ - if (mEvent->internalAppFlags | NS_APP_EVENT_FLAG_HANDLED) { - *aIsHandled = PR_TRUE; - } else { - *aIsHandled = PR_FALSE; - } - return NS_OK; -} - -NS_IMETHODIMP -nsDOMEvent::SetHandled(PRBool aHandled) -{ - if(aHandled) - mEvent->internalAppFlags |= NS_APP_EVENT_FLAG_HANDLED; - else - mEvent->internalAppFlags &= ~NS_APP_EVENT_FLAG_HANDLED; - - return NS_OK; -} - NS_IMETHODIMP nsDOMEvent::GetInternalNSEvent(nsEvent** aNSEvent) { diff --git a/content/events/src/nsDOMEvent.h b/content/events/src/nsDOMEvent.h index c66407a4319b..0293eba86b04 100644 --- a/content/events/src/nsDOMEvent.h +++ b/content/events/src/nsDOMEvent.h @@ -157,9 +157,6 @@ public: NS_IMETHOD HasOriginalTarget(PRBool* aResult); NS_IMETHOD SetTrusted(PRBool aTrusted); - NS_IMETHOD IsHandled(PRBool* aHandled); - NS_IMETHOD SetHandled(PRBool aHandled); - static PopupControlState GetEventPopupControlState(nsEvent *aEvent); static void PopupAllowedEventsChanged(); diff --git a/widget/public/nsGUIEvent.h b/widget/public/nsGUIEvent.h index a0d4f2e55bdc..ff9a88a4311a 100644 --- a/widget/public/nsGUIEvent.h +++ b/widget/public/nsGUIEvent.h @@ -124,11 +124,8 @@ class nsIURI; #define NS_APP_EVENT_FLAG_NONE 0x00000000 -// Similar to NS_EVENT_FLAG_NO_DEFAULT, but it allows focus -#define NS_APP_EVENT_FLAG_HANDLED 0x00000001 - // True if the event came from a trusted source -#define NS_APP_EVENT_FLAG_TRUSTED 0x00000002 +#define NS_APP_EVENT_FLAG_TRUSTED 0x00000001 #define NS_EVENT_TYPE_NULL 0