From 613b80638081101368e31300f6e729c720b160e0 Mon Sep 17 00:00:00 2001 From: "ben@chromium.org" Date: Tue, 14 Oct 2008 23:45:09 +0000 Subject: Convert HitTest/GetViewForPoint to use gfx::Point http://crbug.com/2186 Review URL: http://codereview.chromium.org/7331 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3384 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/views/link.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chrome/views/link.cc') diff --git a/chrome/views/link.cc b/chrome/views/link.cc index 8350a7b..2d04864 100644 --- a/chrome/views/link.cc +++ b/chrome/views/link.cc @@ -84,7 +84,7 @@ bool Link::OnMousePressed(const MouseEvent& e) { bool Link::OnMouseDragged(const MouseEvent& e) { SetHighlighted(enabled_ && (e.IsLeftMouseButton() || e.IsMiddleMouseButton()) && - HitTest(WTL::CPoint(e.x(), e.y()))); + HitTest(e.location())); return true; } @@ -94,7 +94,7 @@ void Link::OnMouseReleased(const MouseEvent& e, bool canceled) { SetHighlighted(false); if (enabled_ && !canceled && (e.IsLeftMouseButton() || e.IsMiddleMouseButton()) && - HitTest(WTL::CPoint(e.x(), e.y()))) { + HitTest(e.location())) { // Focus the link on click. RequestFocus(); -- cgit v1.1