summaryrefslogtreecommitdiffstats
path: root/widget
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-04-17 07:34:35 -0400
committerMatt A. Tobin <email@mattatobin.com>2020-04-17 07:34:35 -0400
commitf164962a3dc53f4823dfff6c77e7972c72d4c61f (patch)
treed318be62580b715d7fbf9ad100026746cc983e02 /widget
parentd925bfcc6930594abfba44125c0d94b34f9c23f6 (diff)
downloadUXP-f164962a3dc53f4823dfff6c77e7972c72d4c61f.tar
UXP-f164962a3dc53f4823dfff6c77e7972c72d4c61f.tar.gz
UXP-f164962a3dc53f4823dfff6c77e7972c72d4c61f.tar.lz
UXP-f164962a3dc53f4823dfff6c77e7972c72d4c61f.tar.xz
UXP-f164962a3dc53f4823dfff6c77e7972c72d4c61f.zip
Bug 1425441 - Move relatedTarget to WidgetEvent
Tag #1375
Diffstat (limited to 'widget')
-rw-r--r--widget/BasicEvents.h4
-rw-r--r--widget/ContentEvents.h4
-rw-r--r--widget/MouseEvents.h4
3 files changed, 4 insertions, 8 deletions
diff --git a/widget/BasicEvents.h b/widget/BasicEvents.h
index 4e9e0e6ce..0ce0f587d 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 be64b7beb..09d4d9928 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 442ac41e8..4b8ff44ce 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;