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

Unified Diff: chrome/browser/ui/gtk/browser_toolbar_gtk.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/ui/gtk/browser_toolbar_gtk.cc
diff --git a/chrome/browser/ui/gtk/browser_toolbar_gtk.cc b/chrome/browser/ui/gtk/browser_toolbar_gtk.cc
index 0579c037ae3b7ac49db7a5fa7c3cf3a71e82219f..d272e1e85cce0657fd6dc187a07a3ff3987b77d9 100644
--- a/chrome/browser/ui/gtk/browser_toolbar_gtk.cc
+++ b/chrome/browser/ui/gtk/browser_toolbar_gtk.cc
@@ -524,7 +524,8 @@ gboolean BrowserToolbarGtk::OnAlignmentExpose(GtkWidget* widget,
if (window_->ShouldDrawContentDropShadow()) {
// Leave room to draw rounded corners.
- area = area.Subtract(right).Subtract(left);
+ area.Subtract(right);
+ area.Subtract(left);
}
gfx::Image background = theme_service_->GetImageNamed(IDR_THEME_TOOLBAR);

Powered by Google App Engine
This is Rietveld 408576698