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

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

Issue 10827198: Change View::HitTest to View::HitTestRect (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 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/content_setting_image_view.cc
diff --git a/chrome/browser/ui/views/location_bar/content_setting_image_view.cc b/chrome/browser/ui/views/location_bar/content_setting_image_view.cc
index 0aaf76d8af8e94e232d9e932613cbfb44244f862..be3d111f4488430e63b965b67675cf488892a118 100644
--- a/chrome/browser/ui/views/location_bar/content_setting_image_view.cc
+++ b/chrome/browser/ui/views/location_bar/content_setting_image_view.cc
@@ -165,7 +165,7 @@ bool ContentSettingImageView::OnMousePressed(const views::MouseEvent& event) {
}
void ContentSettingImageView::OnMouseReleased(const views::MouseEvent& event) {
- if (!HitTest(event.location()))
+ if (!HitTest(gfx::Rect(event.location(), gfx::Size(0, 0))))
sky 2012/08/07 20:11:43 Based on how many calls of this we have I think it
tdanderson 2012/08/08 23:47:51 Done.
return;
TabContents* tab_contents = parent_->GetTabContents();

Powered by Google App Engine
This is Rietveld 408576698