summaryrefslogtreecommitdiffstats
path: root/dom/events/MouseEvent.cpp
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 /dom/events/MouseEvent.cpp
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 'dom/events/MouseEvent.cpp')
-rw-r--r--dom/events/MouseEvent.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/dom/events/MouseEvent.cpp b/dom/events/MouseEvent.cpp
index 5e540ac5b..415e626c5 100644
--- a/dom/events/MouseEvent.cpp
+++ b/dom/events/MouseEvent.cpp
@@ -79,7 +79,7 @@ MouseEvent::InitMouseEvent(const nsAString& aType,
case ePointerEventClass:
case eSimpleGestureEventClass: {
WidgetMouseEventBase* mouseEventBase = mEvent->AsMouseEventBase();
- mouseEventBase->relatedTarget = aRelatedTarget;
+ mouseEventBase->mRelatedTarget = aRelatedTarget;
mouseEventBase->button = aButton;
mouseEventBase->InitBasicModifiers(aCtrlKey, aAltKey, aShiftKey, aMetaKey);
mClientPoint.x = aClientX;
@@ -295,8 +295,7 @@ MouseEvent::GetRelatedTarget()
case eDragEventClass:
case ePointerEventClass:
case eSimpleGestureEventClass:
- relatedTarget =
- do_QueryInterface(mEvent->AsMouseEventBase()->relatedTarget);
+ relatedTarget = mEvent->AsMouseEventBase()->mRelatedTarget;
break;
default:
break;