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

Unified Diff: chrome/browser/ui/views/content_setting_bubble_contents.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/content_setting_bubble_contents.cc
diff --git a/chrome/browser/ui/views/content_setting_bubble_contents.cc b/chrome/browser/ui/views/content_setting_bubble_contents.cc
index 9bfee0255f9d081c1cc3d2a4dd7052aa13e71fbe..072864e5cd8a6369f2c403d0d3434beed9aa132a 100644
--- a/chrome/browser/ui/views/content_setting_bubble_contents.cc
+++ b/chrome/browser/ui/views/content_setting_bubble_contents.cc
@@ -100,7 +100,7 @@ bool ContentSettingBubbleContents::Favicon::OnMousePressed(
void ContentSettingBubbleContents::Favicon::OnMouseReleased(
const ui::MouseEvent& event) {
if ((event.IsLeftMouseButton() || event.IsMiddleMouseButton()) &&
- HitTestPoint(event.location())) {
+ HitTestPoint(gfx::ToFlooredPoint(event.location()))) {
parent_->LinkClicked(link_, event.flags());
}
}

Powered by Google App Engine
This is Rietveld 408576698