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

Unified Diff: chrome/browser/ui/views/toolbar_view.cc

Issue 22891016: Add support for rect-based event targeting in views (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments addressed, moved fuzzing utility functions to new file Created 7 years, 2 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/toolbar_view.cc
diff --git a/chrome/browser/ui/views/toolbar_view.cc b/chrome/browser/ui/views/toolbar_view.cc
index 20e815606cfcdbae442134183422bf79cc21883d..7e62c398c8be857d9550d3f15f7732a580662499 100644
--- a/chrome/browser/ui/views/toolbar_view.cc
+++ b/chrome/browser/ui/views/toolbar_view.cc
@@ -567,7 +567,7 @@ void ToolbarView::Layout() {
bool ToolbarView::HitTestRect(const gfx::Rect& rect) const {
// Don't take hits in our top shadow edge. Let them fall through to the
// tab strip above us.
- if (rect.y() < content_shadow_height())
+ if (rect.bottom() < content_shadow_height())
return false;
// Otherwise let our superclass take care of it.
return AccessiblePaneView::HitTestRect(rect);

Powered by Google App Engine
This is Rietveld 408576698