diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-20 19:16:00 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-20 19:16:00 +0200 |
commit | 04c7949bc3da9e02e563436d7d772424c5492a69 (patch) | |
tree | a8726ee3f8ff94cac8d362f23d51b26acfffde05 | |
parent | 20a3f8c006445b176fa8559f6529c2cf3cb75b0d (diff) | |
download | uxp-04c7949bc3da9e02e563436d7d772424c5492a69.tar.gz |
Bug 1317030 - Removing/reattaching an element from the DOM triggers spurious mouseenter events
native in moebius
-rw-r--r-- | dom/events/EventStateManager.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dom/events/EventStateManager.cpp b/dom/events/EventStateManager.cpp index c23cdb5751..f66cf3f905 100644 --- a/dom/events/EventStateManager.cpp +++ b/dom/events/EventStateManager.cpp @@ -4034,7 +4034,7 @@ public: } } - ~EnterLeaveDispatcher() + void Dispatch() { if (mEventMessage == eMouseEnter || mEventMessage == ePointerEnter) { for (int32_t i = mTargets.Count() - 1; i >= 0; --i) { @@ -4119,6 +4119,7 @@ EventStateManager::NotifyMouseOut(WidgetMouseEvent* aMouseEvent, // Fire mouseout DispatchMouseOrPointerEvent(aMouseEvent, isPointer ? ePointerOut : eMouseOut, wrapper->mLastOverElement, aMovingInto); + leaveDispatcher.Dispatch(); wrapper->mLastOverFrame = nullptr; wrapper->mLastOverElement = nullptr; @@ -4193,6 +4194,7 @@ EventStateManager::NotifyMouseOver(WidgetMouseEvent* aMouseEvent, DispatchMouseOrPointerEvent(aMouseEvent, isPointer ? ePointerOver : eMouseOver, aContent, lastOverElement); + enterDispatcher->Dispatch(); wrapper->mLastOverElement = aContent; } else { wrapper->mLastOverFrame = nullptr; |