Index: chrome/browser/instant/instant_controller.cc |
diff --git a/chrome/browser/instant/instant_controller.cc b/chrome/browser/instant/instant_controller.cc |
index 7329aa06958d9691d93bf97ce5c45fdae48e5f8e..73510e52e0e2cbfd56d1f2305aeac7d52c7a21de 100644 |
--- a/chrome/browser/instant/instant_controller.cc |
+++ b/chrome/browser/instant/instant_controller.cc |
@@ -738,8 +738,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::Intersection(omnibox_bounds_, preview_bounds); |
// Translate into window coordinates. |
if (!intersection.IsEmpty()) { |