diff options
Diffstat (limited to 'chrome/views/link.cc')
-rw-r--r-- | chrome/views/link.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/views/link.cc b/chrome/views/link.cc index 3b19aa1..b42ca6e 100644 --- a/chrome/views/link.cc +++ b/chrome/views/link.cc @@ -109,7 +109,7 @@ bool Link::OnMousePressed(const MouseEvent& e) { bool Link::OnMouseDragged(const MouseEvent& e) { SetHighlighted(enabled_ && (e.IsLeftMouseButton() || e.IsMiddleMouseButton()) && - HitTest(e.GetLocation())); + HitTest(WTL::CPoint(e.GetX(), e.GetY()))); return true; } @@ -119,7 +119,7 @@ void Link::OnMouseReleased(const MouseEvent& e, bool canceled) { SetHighlighted(false); if (enabled_ && !canceled && (e.IsLeftMouseButton() || e.IsMiddleMouseButton()) && - HitTest(e.GetLocation())) { + HitTest(WTL::CPoint(e.GetX(), e.GetY()))) { // Focus the link on click. RequestFocus(); |