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

Unified Diff: chrome/browser/ui/tabs/dock_info.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
Index: chrome/browser/ui/tabs/dock_info.cc
diff --git a/chrome/browser/ui/tabs/dock_info.cc b/chrome/browser/ui/tabs/dock_info.cc
index 73879f861ca7fca903d1e99d734470be70637c00..dd6de547c3ffc79d911d98299cc7f8fefe9c0242 100644
--- a/chrome/browser/ui/tabs/dock_info.cc
+++ b/chrome/browser/ui/tabs/dock_info.cc
@@ -224,7 +224,7 @@ gfx::Rect DockInfo::GetPopupRect() const {
case BOTTOM_OF_WINDOW: {
// Constrain the popup to the monitor's bounds.
gfx::Rect ideal_bounds(x, y, popup_width(), popup_height());
- ideal_bounds = ideal_bounds.AdjustToFit(monitor_bounds_);
+ ideal_bounds.AdjustToFit(monitor_bounds_);
return ideal_bounds;
}
case DockInfo::MAXIMIZE:
« no previous file with comments | « chrome/browser/ui/panels/panel_manager.cc ('k') | chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698