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

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: cc/ fixes 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
« no previous file with comments | « cc/software_renderer.cc ('k') | chrome/browser/notifications/balloon_collection_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/instant/instant_controller.cc
diff --git a/chrome/browser/instant/instant_controller.cc b/chrome/browser/instant/instant_controller.cc
index e4a3a4e1da4993b15434f79858678cea31809b61..a05c8edef765a65b2820342652d1dac10825ed85 100644
--- a/chrome/browser/instant/instant_controller.cc
+++ b/chrome/browser/instant/instant_controller.cc
@@ -751,7 +751,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()) {
« no previous file with comments | « cc/software_renderer.cc ('k') | chrome/browser/notifications/balloon_collection_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698