| Index: ui/views/controls/link.cc
|
| diff --git a/ui/views/controls/link.cc b/ui/views/controls/link.cc
|
| index ec76a2d09090da97d778e6415d202b504ab00d76..f4b8de67b3da28dcf184d9e56c832258dd7259fd 100644
|
| --- a/ui/views/controls/link.cc
|
| +++ b/ui/views/controls/link.cc
|
| @@ -54,10 +54,10 @@ gfx::NativeCursor Link::GetCursor(const MouseEvent& event) {
|
| #endif
|
| }
|
|
|
| -bool Link::HitTest(const gfx::Point& l) const {
|
| +bool Link::HitTestRect(const gfx::Rect& rect) const {
|
| // We need to allow clicks on the link. So we override the implementation in
|
| // Label and use the default implementation of View.
|
| - return View::HitTest(l);
|
| + return View::HitTestRect(rect);
|
| }
|
|
|
| bool Link::OnMousePressed(const MouseEvent& event) {
|
| @@ -71,7 +71,7 @@ bool Link::OnMousePressed(const MouseEvent& event) {
|
| bool Link::OnMouseDragged(const MouseEvent& event) {
|
| SetPressed(enabled() &&
|
| (event.IsLeftMouseButton() || event.IsMiddleMouseButton()) &&
|
| - HitTest(event.location()));
|
| + HitTestPoint(event.location()));
|
| return true;
|
| }
|
|
|
| @@ -81,7 +81,7 @@ void Link::OnMouseReleased(const MouseEvent& event) {
|
| OnMouseCaptureLost();
|
| if (enabled() &&
|
| (event.IsLeftMouseButton() || event.IsMiddleMouseButton()) &&
|
| - HitTest(event.location())) {
|
| + HitTestPoint(event.location())) {
|
| // Focus the link on click.
|
| RequestFocus();
|
|
|
|
|