diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-04-17 07:34:35 -0400 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2020-04-17 07:34:35 -0400 |
commit | f164962a3dc53f4823dfff6c77e7972c72d4c61f (patch) | |
tree | d318be62580b715d7fbf9ad100026746cc983e02 /widget | |
parent | d925bfcc6930594abfba44125c0d94b34f9c23f6 (diff) | |
download | uxp-f164962a3dc53f4823dfff6c77e7972c72d4c61f.tar.gz |
Bug 1425441 - Move relatedTarget to WidgetEvent
Tag #1375
Diffstat (limited to 'widget')
-rw-r--r-- | widget/BasicEvents.h | 4 | ||||
-rw-r--r-- | widget/ContentEvents.h | 4 | ||||
-rw-r--r-- | widget/MouseEvents.h | 4 |
3 files changed, 4 insertions, 8 deletions
diff --git a/widget/BasicEvents.h b/widget/BasicEvents.h index 4e9e0e6cea..0ce0f587dd 100644 --- a/widget/BasicEvents.h +++ b/widget/BasicEvents.h @@ -423,6 +423,9 @@ public: nsCOMPtr<dom::EventTarget> mCurrentTarget; nsCOMPtr<dom::EventTarget> mOriginalTarget; + /// The possible related target + nsCOMPtr<dom::EventTarget> mRelatedTarget; + nsTArray<EventTargetChainItem>* mPath; dom::EventTarget* GetDOMEventTarget() const; @@ -442,6 +445,7 @@ public: mTarget = aCopyTargets ? aEvent.mTarget : nullptr; mCurrentTarget = aCopyTargets ? aEvent.mCurrentTarget : nullptr; mOriginalTarget = aCopyTargets ? aEvent.mOriginalTarget : nullptr; + mRelatedTarget = aCopyTargets ? aEvent.mRelatedTarget : nullptr; } /** diff --git a/widget/ContentEvents.h b/widget/ContentEvents.h index be64b7bebd..09d4d9928c 100644 --- a/widget/ContentEvents.h +++ b/widget/ContentEvents.h @@ -212,9 +212,6 @@ public: return result; } - /// The possible related target - nsCOMPtr<dom::EventTarget> mRelatedTarget; - bool mFromRaise; bool mIsRefocus; @@ -222,7 +219,6 @@ public: { AssignUIEventData(aEvent, aCopyTargets); - mRelatedTarget = aCopyTargets ? aEvent.mRelatedTarget : nullptr; mFromRaise = aEvent.mFromRaise; mIsRefocus = aEvent.mIsRefocus; } diff --git a/widget/MouseEvents.h b/widget/MouseEvents.h index 442ac41e82..4b8ff44ce6 100644 --- a/widget/MouseEvents.h +++ b/widget/MouseEvents.h @@ -110,9 +110,6 @@ public: MOZ_CRASH("WidgetMouseEventBase must not be most-subclass"); } - /// The possible related target - nsCOMPtr<nsISupports> relatedTarget; - enum buttonType { eLeftButton = 0, @@ -162,7 +159,6 @@ public: { AssignInputEventData(aEvent, aCopyTargets); - relatedTarget = aCopyTargets ? aEvent.relatedTarget : nullptr; button = aEvent.button; buttons = aEvent.buttons; pressure = aEvent.pressure; |