From 77c3f0cdfa67fa2d6ba4b79addc91039ab2c6bb2 Mon Sep 17 00:00:00 2001 From: David Zbarsky Date: Wed, 4 Feb 2015 15:21:03 -0500 Subject: [PATCH] Bug 1125040 - Use LayoutDeviceIntPoint in nsTitleBarFrame r=botond --- layout/xul/nsTitleBarFrame.cpp | 4 ++-- layout/xul/nsTitleBarFrame.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layout/xul/nsTitleBarFrame.cpp b/layout/xul/nsTitleBarFrame.cpp index b1835db9ccc..fea19176e15 100644 --- a/layout/xul/nsTitleBarFrame.cpp +++ b/layout/xul/nsTitleBarFrame.cpp @@ -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) { diff --git a/layout/xul/nsTitleBarFrame.h b/layout/xul/nsTitleBarFrame.h index f4e9881a92f..2b9f6441bcb 100644 --- a/layout/xul/nsTitleBarFrame.h +++ b/layout/xul/nsTitleBarFrame.h @@ -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