Bug 1244546 part 1 - Apply proper unit conversion for SynthesizeNativeMouseEvent. r=karlt

MozReview-Commit-ID: 6XLzx7CyFEj

--HG--
extra : source : 5c61d059fc06b04456ab69c608d98e1e9433619d
This commit is contained in:
Xidorn Quan 2016-03-11 19:10:44 +08:00
Родитель 77f7208a3f
Коммит 51156be7b4
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -6823,7 +6823,8 @@ nsWindow::SynthesizeNativeMouseEvent(LayoutDeviceIntPoint aPoint,
// aNativeMessage != GDK_BUTTON_RELEASE we'll synthesize a motion event
// that will be emitted by gdk_display_warp_pointer().
GdkScreen* screen = gdk_window_get_screen(mGdkWindow);
gdk_display_warp_pointer(display, screen, aPoint.x, aPoint.y);
GdkPoint point = DevicePixelsToGdkPointRoundDown(aPoint);
gdk_display_warp_pointer(display, screen, point.x, point.y);
}
return NS_OK;