Bug 875050, EventListenerManager mTarget should be EventTarget, r=bz

--HG--
extra : rebase_source : 92caa79eb16fbfad7b8cc6a6037db31f47e2f056
This commit is contained in:
Olli Pettay 2013-05-23 14:38:01 +03:00
parent 464f6f4589
commit 911fad41f1
2 changed files with 4 additions and 4 deletions

View File

@ -101,7 +101,7 @@ MutationBitForEventType(uint32_t aEventType)
uint32_t nsEventListenerManager::sCreatedCount = 0; uint32_t nsEventListenerManager::sCreatedCount = 0;
nsEventListenerManager::nsEventListenerManager(nsISupports* aTarget) : nsEventListenerManager::nsEventListenerManager(EventTarget* aTarget) :
mMayHavePaintEventListener(false), mMayHavePaintEventListener(false),
mMayHaveMutationListeners(false), mMayHaveMutationListeners(false),
mMayHaveCapturingListeners(false), mMayHaveCapturingListeners(false),

View File

@ -210,7 +210,7 @@ class nsEventListenerManager
{ {
public: public:
nsEventListenerManager(nsISupports* aTarget); nsEventListenerManager(mozilla::dom::EventTarget* aTarget);
virtual ~nsEventListenerManager(); virtual ~nsEventListenerManager();
NS_INLINE_DECL_CYCLE_COLLECTING_NATIVE_REFCOUNTING(nsEventListenerManager) NS_INLINE_DECL_CYCLE_COLLECTING_NATIVE_REFCOUNTING(nsEventListenerManager)
@ -404,7 +404,7 @@ public:
void MarkForCC(); void MarkForCC();
nsISupports* GetTarget() { return mTarget; } mozilla::dom::EventTarget* GetTarget() { return mTarget; }
protected: protected:
void HandleEventInternal(nsPresContext* aPresContext, void HandleEventInternal(nsPresContext* aPresContext,
nsEvent* aEvent, nsEvent* aEvent,
@ -533,7 +533,7 @@ protected:
uint32_t mNoListenerForEvent : 24; uint32_t mNoListenerForEvent : 24;
nsAutoTObserverArray<nsListenerStruct, 2> mListeners; nsAutoTObserverArray<nsListenerStruct, 2> mListeners;
nsISupports* mTarget; //WEAK mozilla::dom::EventTarget* mTarget; //WEAK
nsCOMPtr<nsIAtom> mNoListenerForEventAtom; nsCOMPtr<nsIAtom> mNoListenerForEventAtom;
static uint32_t mInstanceCount; static uint32_t mInstanceCount;