From 911fad41f1dee02cfd67b3d9d72791a8bf2edd87 Mon Sep 17 00:00:00 2001 From: Olli Pettay Date: Thu, 23 May 2013 14:38:01 +0300 Subject: [PATCH] Bug 875050, EventListenerManager mTarget should be EventTarget, r=bz --HG-- extra : rebase_source : 92caa79eb16fbfad7b8cc6a6037db31f47e2f056 --- content/events/src/nsEventListenerManager.cpp | 2 +- content/events/src/nsEventListenerManager.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/content/events/src/nsEventListenerManager.cpp b/content/events/src/nsEventListenerManager.cpp index ac06cc19542..a1ce3150c67 100644 --- a/content/events/src/nsEventListenerManager.cpp +++ b/content/events/src/nsEventListenerManager.cpp @@ -101,7 +101,7 @@ MutationBitForEventType(uint32_t aEventType) uint32_t nsEventListenerManager::sCreatedCount = 0; -nsEventListenerManager::nsEventListenerManager(nsISupports* aTarget) : +nsEventListenerManager::nsEventListenerManager(EventTarget* aTarget) : mMayHavePaintEventListener(false), mMayHaveMutationListeners(false), mMayHaveCapturingListeners(false), diff --git a/content/events/src/nsEventListenerManager.h b/content/events/src/nsEventListenerManager.h index 060e24cb7e5..28babc0d741 100644 --- a/content/events/src/nsEventListenerManager.h +++ b/content/events/src/nsEventListenerManager.h @@ -210,7 +210,7 @@ class nsEventListenerManager { public: - nsEventListenerManager(nsISupports* aTarget); + nsEventListenerManager(mozilla::dom::EventTarget* aTarget); virtual ~nsEventListenerManager(); NS_INLINE_DECL_CYCLE_COLLECTING_NATIVE_REFCOUNTING(nsEventListenerManager) @@ -404,7 +404,7 @@ public: void MarkForCC(); - nsISupports* GetTarget() { return mTarget; } + mozilla::dom::EventTarget* GetTarget() { return mTarget; } protected: void HandleEventInternal(nsPresContext* aPresContext, nsEvent* aEvent, @@ -533,7 +533,7 @@ protected: uint32_t mNoListenerForEvent : 24; nsAutoTObserverArray mListeners; - nsISupports* mTarget; //WEAK + mozilla::dom::EventTarget* mTarget; //WEAK nsCOMPtr mNoListenerForEventAtom; static uint32_t mInstanceCount;