Fix mouse event handling regression from bug 1143567. (bug 1142866, r=jmathies)
authorDavid Anderson <danderson@mozilla.com>
Tue, 17 Mar 2015 14:01:20 -0700
changeset 264468 d45aaa6d22177d5fa35ae05f3398adda4106a396
parent 264467 5c0bd25d0a246750752d1c6dc6026361d9d4f653
child 264469 e5a94f80f3428f9bf082beb921c39f3e821d421d
push id830
push userraliiev@mozilla.com
push dateFri, 19 Jun 2015 19:24:37 +0000
treeherdermozilla-release@932614382a68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmathies
bugs1143567, 1142866
milestone39.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
Fix mouse event handling regression from bug 1143567. (bug 1142866, r=jmathies)
widget/windows/nsWindow.cpp
--- a/widget/windows/nsWindow.cpp
+++ b/widget/windows/nsWindow.cpp
@@ -5572,17 +5572,17 @@ nsWindow::ClientMarginHitTestPoint(int32
       testResult = mCachedHitTestResult;
     } else {
       WidgetMouseEvent event(true, NS_MOUSE_MOZHITTEST, this,
                              WidgetMouseEvent::eReal,
                              WidgetMouseEvent::eNormal);
       event.refPoint = LayoutDeviceIntPoint(pt.x, pt.y);
       event.inputSource = MOUSE_INPUT_SOURCE();
       event.mFlags.mOnlyChromeDispatch = true;
-      bool result = DispatchInputEvent(&event);
+      bool result = ConvertStatus(DispatchInputEvent(&event));
       if (result) {
         // The mouse is over a blank area
         testResult = testResult == HTCLIENT ? HTCAPTION : testResult;
 
       } else {
         // There's content over the mouse pointer. Set HTCLIENT
         // to possibly override a resizer border.
         testResult = HTCLIENT;