From f164962a3dc53f4823dfff6c77e7972c72d4c61f Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 17 Apr 2020 07:34:35 -0400 Subject: Bug 1425441 - Move relatedTarget to WidgetEvent Tag #1375 --- widget/BasicEvents.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'widget/BasicEvents.h') 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 mCurrentTarget; nsCOMPtr mOriginalTarget; + /// The possible related target + nsCOMPtr mRelatedTarget; + nsTArray* 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; } /** -- cgit v1.2.3