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

Unified Diff: chrome/browser/notifications/balloon_collection_impl.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/notifications/balloon_collection_impl.cc
diff --git a/chrome/browser/notifications/balloon_collection_impl.cc b/chrome/browser/notifications/balloon_collection_impl.cc
index 1f4435ae74bae3bbcd9d590984d020a731918943..ab5d3e96d2bab186f4abf679a3af65f376242a9a 100644
--- a/chrome/browser/notifications/balloon_collection_impl.cc
+++ b/chrome/browser/notifications/balloon_collection_impl.cc
@@ -218,7 +218,7 @@ gfx::Rect BalloonCollectionImpl::GetBalloonsBoundingBox() const {
for (iter = balloons.begin(); iter != balloons.end(); ++iter) {
gfx::Rect balloon_box = gfx::Rect((*iter)->GetPosition(),
(*iter)->GetViewSize());
- bounds = bounds.Union(balloon_box);
+ bounds.Union(balloon_box);
}
return bounds;

Powered by Google App Engine
This is Rietveld 408576698