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

Unified Diff: chrome/browser/ui/views/location_bar/page_info_helper.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_info_helper.cc
diff --git a/chrome/browser/ui/views/location_bar/page_info_helper.cc b/chrome/browser/ui/views/location_bar/page_info_helper.cc
index e92f809627bc86a0606dc81df62ccda7c23cf615..6f7e3d7d6a9a57f5d7bccc891a08eb40e9a27241 100644
--- a/chrome/browser/ui/views/location_bar/page_info_helper.cc
+++ b/chrome/browser/ui/views/location_bar/page_info_helper.cc
@@ -23,7 +23,7 @@ PageInfoHelper::PageInfoHelper(const views::View* owner,
}
void PageInfoHelper::ProcessEvent(const ui::LocatedEvent& event) {
- if (!owner_->HitTestPoint(event.location()))
+ if (!owner_->HitTestPoint(gfx::ToFlooredPoint(event.location())))
return;
WebContents* tab = location_bar_->GetWebContents();

Powered by Google App Engine
This is Rietveld 408576698