Bug 1125040: Use LayoutDeviceIntPoint for nsIWidget::WidgetToScreen r=botond

This commit is contained in:
David Zbarsky
2015-02-01 17:27:41 -05:00
parent 389ecba2dc
commit baa5df4d99
42 changed files with 112 additions and 124 deletions

View File

@@ -2121,8 +2121,7 @@ nsEventStatus nsPluginInstanceOwner::ProcessEvent(const WidgetGUIEvent& anEvent)
// Get reference point relative to screen:
LayoutDeviceIntPoint rootPoint(-1, -1);
if (widget)
rootPoint = anEvent.refPoint +
LayoutDeviceIntPoint::FromUntyped(widget->WidgetToScreenOffset());
rootPoint = anEvent.refPoint + widget->WidgetToScreenOffset();
#ifdef MOZ_WIDGET_GTK
Window root = GDK_ROOT_WINDOW();
#elif defined(MOZ_WIDGET_QT)