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

Unified Diff: chrome/browser/instant/instant_controller.cc

Issue 11110004: Make gfx::Rect class operations consistently mutate the class they are called on. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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/instant/instant_controller.cc
diff --git a/chrome/browser/instant/instant_controller.cc b/chrome/browser/instant/instant_controller.cc
index 24f7e8afc20cefd2d043d01843ad59668d7d97af..9300ba8ffaa79a8af4833d1d4fc05b6002ce87a4 100644
--- a/chrome/browser/instant/instant_controller.cc
+++ b/chrome/browser/instant/instant_controller.cc
@@ -720,7 +720,8 @@ void InstantController::SendBoundsToPage() {
last_omnibox_bounds_ = omnibox_bounds_;
gfx::Rect preview_bounds = delegate_->GetInstantBounds();
- gfx::Rect intersection = omnibox_bounds_.Intersect(preview_bounds);
+ gfx::Rect intersection = omnibox_bounds_;
+ intersection.Intersect(preview_bounds);
// Translate into window coordinates.
if (!intersection.IsEmpty()) {

Powered by Google App Engine
This is Rietveld 408576698