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

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 Created 7 years, 3 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 3a3bb1b74fd1c4bd3049762a320b6fdc90bf47c6..8074710efef5b69847b3148e9dcf19a93bb0d528 100644
--- a/chrome/browser/ui/views/toolbar_view.cc
+++ b/chrome/browser/ui/views/toolbar_view.cc
@@ -575,7 +575,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