From ea36e9286d31eae9f598adbb1790b7442e133cca Mon Sep 17 00:00:00 2001 From: "dbaron%dbaron.org" Date: Sat, 21 Aug 2004 00:10:57 +0000 Subject: [PATCH] Remove unneeded forwarding of nsIDOMNSUIEvent methods to reduce codesize gain and perhaps help Tp/Tdhtml regression. b=238773 r=bryner --- content/events/src/nsDOMKeyboardEvent.h | 2 +- content/events/src/nsDOMMouseEvent.h | 2 +- content/events/src/nsDOMPopupBlockedEvent.h | 2 +- content/events/src/nsDOMUIEvent.h | 18 ------------------ 4 files changed, 3 insertions(+), 21 deletions(-) diff --git a/content/events/src/nsDOMKeyboardEvent.h b/content/events/src/nsDOMKeyboardEvent.h index 6eb8245c1079..9eef524731ec 100644 --- a/content/events/src/nsDOMKeyboardEvent.h +++ b/content/events/src/nsDOMKeyboardEvent.h @@ -54,7 +54,7 @@ public: NS_DECL_NSIDOMKEYEVENT // Forward to base class - NS_FORWARD_TO_NSDOMUIEVENT_NO_WHICH + NS_FORWARD_TO_NSDOMUIEVENT // Specific implementation for a keyboard event. NS_IMETHOD GetWhich(PRUint32 *aWhich); diff --git a/content/events/src/nsDOMMouseEvent.h b/content/events/src/nsDOMMouseEvent.h index 2cd04d9b8d25..aa480fb6a7c1 100644 --- a/content/events/src/nsDOMMouseEvent.h +++ b/content/events/src/nsDOMMouseEvent.h @@ -59,7 +59,7 @@ public: NS_DECL_NSIDOMMOUSEEVENT // Forward to base class - NS_FORWARD_TO_NSDOMUIEVENT_NO_WHICH + NS_FORWARD_TO_NSDOMUIEVENT // Specific implementation for a mouse event. NS_IMETHOD GetWhich(PRUint32 *aWhich); diff --git a/content/events/src/nsDOMPopupBlockedEvent.h b/content/events/src/nsDOMPopupBlockedEvent.h index 8fb35161fb44..0f4d7b3abd92 100644 --- a/content/events/src/nsDOMPopupBlockedEvent.h +++ b/content/events/src/nsDOMPopupBlockedEvent.h @@ -54,7 +54,7 @@ public: NS_DECL_ISUPPORTS_INHERITED // Forward to nsDOMEvent - NS_FORWARD_NSIDOMEVENT(nsDOMEvent::) + NS_FORWARD_TO_NSDOMEVENT // nsIDOMPopupBlockedEvent Interface NS_DECL_NSIDOMPOPUPBLOCKEDEVENT diff --git a/content/events/src/nsDOMUIEvent.h b/content/events/src/nsDOMUIEvent.h index 0f81f17c2bc7..e2b4a167081d 100644 --- a/content/events/src/nsDOMUIEvent.h +++ b/content/events/src/nsDOMUIEvent.h @@ -82,26 +82,8 @@ protected: PRInt32 mDetail; }; -#define NS_FORWARD_NSIDOMNSUIEVENT_NO_WHICH(_to) \ - NS_IMETHOD GetPreventDefault(PRBool *_retval) { return _to GetPreventDefault(_retval); } \ - NS_IMETHOD GetLayerX(PRInt32 *aLayerX) { return _to GetLayerX(aLayerX); } \ - NS_IMETHOD GetLayerY(PRInt32 *aLayerY) { return _to GetLayerY(aLayerY); } \ - NS_IMETHOD GetPageX(PRInt32 *aPageX) { return _to GetPageX(aPageX); } \ - NS_IMETHOD GetPageY(PRInt32 *aPageY) { return _to GetPageY(aPageY); } \ - NS_IMETHOD GetRangeParent(nsIDOMNode * *aRangeParent) { return _to GetRangeParent(aRangeParent); } \ - NS_IMETHOD GetRangeOffset(PRInt32 *aRangeOffset) { return _to GetRangeOffset(aRangeOffset); } \ - NS_IMETHOD GetCancelBubble(PRBool *aCancelBubble) { return _to GetCancelBubble(aCancelBubble); } \ - NS_IMETHOD SetCancelBubble(PRBool aCancelBubble) { return _to SetCancelBubble(aCancelBubble); } \ - NS_IMETHOD GetIsChar(PRBool *aIsChar) { return _to GetIsChar(aIsChar); } - #define NS_FORWARD_TO_NSDOMUIEVENT \ NS_FORWARD_NSIDOMUIEVENT(nsDOMUIEvent::) \ - NS_FORWARD_NSIDOMNSUIEVENT(nsDOMUIEvent::) \ - NS_FORWARD_TO_NSDOMEVENT - -#define NS_FORWARD_TO_NSDOMUIEVENT_NO_WHICH \ - NS_FORWARD_NSIDOMUIEVENT(nsDOMUIEvent::) \ - NS_FORWARD_NSIDOMNSUIEVENT_NO_WHICH(nsDOMUIEvent::) \ NS_FORWARD_TO_NSDOMEVENT #endif // nsDOMUIEvent_h__