| Index: chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
|
| diff --git a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
|
| index fda8b77ab11f0a40ffc4c2459e1c69fedf37d210..34e390620cc5704bc437fe9eb7d598898c237678 100644
|
| --- a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
|
| +++ b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
|
| @@ -679,17 +679,17 @@ gfx::Size BookmarkBarView::GetPreferredSize() const {
|
| return prefsize;
|
| }
|
|
|
| -bool BookmarkBarView::HitTestRect(const gfx::Rect& rect) const {
|
| - // If bookmark bar is attached and omnibox popup is open (on top of the bar),
|
| - // force hit-testing to fail. This prevents hovers/clicks just above the
|
| - // omnibox popup from activating the top few pixels of items on the bookmark
|
| - // bar.
|
| +bool BookmarkBarView::CanProcessEventsWithinSubtree() const {
|
| + // If the bookmark bar is attached and the omnibox popup is open (on top of
|
| + // the bar), prevent events from targeting the bookmark bar or any of its
|
| + // descendants. This will prevent hovers/clicks just above the omnibox popup
|
| + // from activating the top few pixels of items on the bookmark bar.
|
| if (!IsDetached() && browser_view_ &&
|
| browser_view_->GetLocationBar()->GetOmniboxView()->model()->
|
| popup_model()->IsOpen()) {
|
| return false;
|
| }
|
| - return DetachableToolbarView::HitTestRect(rect);
|
| + return true;
|
| }
|
|
|
| gfx::Size BookmarkBarView::GetMinimumSize() const {
|
|
|