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 4e8049c7df859b668ece8c6b33806017bd42d7fb..c7c534400908286e38f9971405ce693f042bc0b1 100644 |
--- a/chrome/browser/ui/views/toolbar_view.cc |
+++ b/chrome/browser/ui/views/toolbar_view.cc |
@@ -444,8 +444,8 @@ void ToolbarView::LayoutForSearch() { |
// Note that parent of |location_bar_container_| i.e. BrowserView can't clip |
// its children, else it loses the 3D shadows. |
gfx::Rect parent_rect = location_bar_container_->parent()->GetLocalBounds(); |
- gfx::Rect intersect_rect = parent_rect; |
- intersect_rect.Intersect(location_container_bounds); |
+ gfx::Rect intersect_rect = |
+ gfx::Intersection(parent_rect, location_container_bounds); |
// If the two bounds don't intersect, set bounds of |location_bar_container_| |
// to 0. |
location_bar_container_->SetBoundsRect(intersect_rect); |