Index: chrome/browser/instant/instant_controller.cc |
diff --git a/chrome/browser/instant/instant_controller.cc b/chrome/browser/instant/instant_controller.cc |
index 61f6d3b8e49889080636f553977a1591b140a317..3d3279ad30ff65f5d61bd6692fbe1d8509bda7f4 100644 |
--- a/chrome/browser/instant/instant_controller.cc |
+++ b/chrome/browser/instant/instant_controller.cc |
@@ -744,8 +744,7 @@ void InstantController::SendBoundsToPage() { |
last_omnibox_bounds_ = omnibox_bounds_; |
gfx::Rect preview_bounds = browser_->GetInstantBounds(); |
- gfx::Rect intersection = omnibox_bounds_; |
- intersection.Intersect(preview_bounds); |
+ gfx::Rect intersection = gfx::IntersectRects(omnibox_bounds_, preview_bounds); |
// Translate into window coordinates. |
if (!intersection.IsEmpty()) { |