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;
nsEventListenerManager::nsEventListenerManager(nsISupports* aTarget) :
nsEventListenerManager::nsEventListenerManager(EventTarget* aTarget) :
mMayHavePaintEventListener(false),
mMayHaveMutationListeners(false),
mMayHaveCapturingListeners(false),

View File

@ -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<nsListenerStruct, 2> mListeners;
nsISupports* mTarget; //WEAK
mozilla::dom::EventTarget* mTarget; //WEAK
nsCOMPtr<nsIAtom> mNoListenerForEventAtom;
static uint32_t mInstanceCount;