Index: chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc |
diff --git a/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc b/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc |
index 815bd8b6111fc445074fa47b5cfca765939c70d0..13fe6e475ef1fb250939a4b988290849ba8f11d9 100644 |
--- a/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc |
+++ b/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc |
@@ -502,7 +502,7 @@ void OmniboxPopupContentsView::OpenIndex(size_t index, |
size_t OmniboxPopupContentsView::GetIndexForPoint( |
const gfx::Point& point) { |
- if (!HitTest(point)) |
+ if (!HitTest(gfx::Rect(point, gfx::Size(0, 0)))) |
return OmniboxPopupModel::kNoMatch; |
int nb_match = model_->result().size(); |
@@ -511,7 +511,7 @@ size_t OmniboxPopupContentsView::GetIndexForPoint( |
views::View* child = child_at(i); |
gfx::Point point_in_child_coords(point); |
View::ConvertPointToView(this, child, &point_in_child_coords); |
- if (child->HitTest(point_in_child_coords)) |
+ if (child->HitTest(gfx::Rect(point_in_child_coords, gfx::Size(0, 0)))) |
return i; |
} |
return OmniboxPopupModel::kNoMatch; |