mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1125040 - Use LayoutDeviceIntPoint in nsTitleBarFrame r=botond
This commit is contained in:
parent
bbd1cab8a1
commit
77c3f0cdfa
@ -81,7 +81,7 @@ nsTitleBarFrame::HandleEvent(nsPresContext* aPresContext,
|
||||
nsIPresShell::SetCapturingContent(GetContent(), CAPTURE_IGNOREALLOWED);
|
||||
|
||||
// remember current mouse coordinates.
|
||||
mLastPoint = LayoutDeviceIntPoint::ToUntyped(aEvent->refPoint);
|
||||
mLastPoint = aEvent->refPoint;
|
||||
}
|
||||
}
|
||||
|
||||
@ -110,7 +110,7 @@ nsTitleBarFrame::HandleEvent(nsPresContext* aPresContext,
|
||||
case NS_MOUSE_MOVE: {
|
||||
if(mTrackingMouseMove)
|
||||
{
|
||||
nsIntPoint nsMoveBy = LayoutDeviceIntPoint::ToUntyped(aEvent->refPoint) - mLastPoint;
|
||||
LayoutDeviceIntPoint nsMoveBy = aEvent->refPoint - mLastPoint;
|
||||
|
||||
nsIFrame* parent = GetParent();
|
||||
while (parent) {
|
||||
|
@ -32,8 +32,8 @@ public:
|
||||
void UpdateMouseThrough() MOZ_OVERRIDE { AddStateBits(NS_FRAME_MOUSE_THROUGH_NEVER); }
|
||||
|
||||
protected:
|
||||
bool mTrackingMouseMove;
|
||||
nsIntPoint mLastPoint;
|
||||
bool mTrackingMouseMove;
|
||||
mozilla::LayoutDeviceIntPoint mLastPoint;
|
||||
|
||||
}; // class nsTitleBarFrame
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user