Bug 707859 part.2 Forget PresShell::mSynthMouseMoveEvent when drag session prevents to dispatch it r=smaug
authorMasayuki Nakano <masayuki@d-toybox.com>
Fri, 24 Feb 2012 13:41:33 +0900
changeset 87611 ad54332581f88f3be7de09ec5e9ef113186a06d0
parent 87610 ca7abbb11f4a893264e9ca89bfcd630a3a6fc62c
child 87612 fbcdc2c87df8268992d365ece1342b0016d11ea2
child 87616 6e07d54535af20408f3efe80f13525f57980ebb8
push id22133
push usermak77@bonardo.net
push dateFri, 24 Feb 2012 10:23:30 +0000
treeherdermozilla-central@fbcdc2c87df8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs707859
milestone13.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 707859 part.2 Forget PresShell::mSynthMouseMoveEvent when drag session prevents to dispatch it r=smaug
layout/base/nsPresShell.cpp
--- a/layout/base/nsPresShell.cpp
+++ b/layout/base/nsPresShell.cpp
@@ -5345,16 +5345,17 @@ static nsIView* FindViewContaining(nsIVi
 }
 
 void
 PresShell::ProcessSynthMouseMoveEvent(bool aFromScroll)
 {
   // If drag session has started, we shouldn't synthesize mousemove event.
   nsCOMPtr<nsIDragSession> dragSession = nsContentUtils::GetDragSession();
   if (dragSession) {
+    mSynthMouseMoveEvent.Forget();
     return;
   }
 
   // allow new event to be posted while handling this one only if the
   // source of the event is a scroll (to prevent infinite reflow loops)
   if (aFromScroll) {
     mSynthMouseMoveEvent.Forget();
   }