Bug 1125040 - Use LayoutDeviceIntPoint in nsTitleBarFrame r=botond

This commit is contained in:
David Zbarsky 2015-02-04 15:21:03 -05:00
parent ec6ce0074b
commit a49d65a406
2 changed files with 4 additions and 4 deletions

View File

@ -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) {

View File

@ -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