| Index: ui/views/controls/link.cc
|
| diff --git a/ui/views/controls/link.cc b/ui/views/controls/link.cc
|
| index 84ff1de5eebdbb317658fb15fd62b16ba14b6c00..a663ccb45657c524656e5ba717059f48080c91fd 100644
|
| --- a/ui/views/controls/link.cc
|
| +++ b/ui/views/controls/link.cc
|
| @@ -68,7 +68,7 @@ bool Link::OnMousePressed(const ui::MouseEvent& event) {
|
| bool Link::OnMouseDragged(const ui::MouseEvent& event) {
|
| SetPressed(enabled() &&
|
| (event.IsLeftMouseButton() || event.IsMiddleMouseButton()) &&
|
| - HitTestPoint(event.location()));
|
| + HitTestPoint(gfx::ToFlooredPoint(event.location())));
|
| return true;
|
| }
|
|
|
| @@ -76,9 +76,8 @@ void Link::OnMouseReleased(const ui::MouseEvent& event) {
|
| // Change the highlight first just in case this instance is deleted
|
| // while calling the controller
|
| OnMouseCaptureLost();
|
| - if (enabled() &&
|
| - (event.IsLeftMouseButton() || event.IsMiddleMouseButton()) &&
|
| - HitTestPoint(event.location())) {
|
| + if (enabled() && (event.IsLeftMouseButton() || event.IsMiddleMouseButton()) &&
|
| + HitTestPoint(gfx::ToFlooredPoint(event.location()))) {
|
| // Focus the link on click.
|
| RequestFocus();
|
|
|
|
|