Bug 1125040: Use LayoutDeviceIntPoint for nsIWidget::WidgetToScreen r=botond
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user