Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1206)

Unified Diff: chrome/browser/ui/views/location_bar/page_action_image_view.cc

Issue 139983009: ui::LocatedEvent location() returns gfx::PointF (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Undo accidental change. Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/location_bar/page_action_image_view.cc
diff --git a/chrome/browser/ui/views/location_bar/page_action_image_view.cc b/chrome/browser/ui/views/location_bar/page_action_image_view.cc
index cfb05e3234e705038106c228237756533f68338a..1fae2799a018b89bb7bea8f5c947944b7d07fbe7 100644
--- a/chrome/browser/ui/views/location_bar/page_action_image_view.cc
+++ b/chrome/browser/ui/views/location_bar/page_action_image_view.cc
@@ -124,7 +124,7 @@ bool PageActionImageView::OnMousePressed(const ui::MouseEvent& event) {
}
void PageActionImageView::OnMouseReleased(const ui::MouseEvent& event) {
- if (!HitTestPoint(event.location()))
+ if (!HitTestPoint(gfx::ToFlooredPoint(event.location())))
return;
if (event.IsRightMouseButton()) {

Powered by Google App Engine
This is Rietveld 408576698