mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 875050, EventListenerManager mTarget should be EventTarget, r=bz
--HG-- extra : rebase_source : 92caa79eb16fbfad7b8cc6a6037db31f47e2f056
This commit is contained in:
parent
464f6f4589
commit
911fad41f1
@ -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),
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user