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

Unified Diff: ui/gfx/rect_f.h

Issue 11377068: ui: Make gfx::Size::Scale() mutate the class. Add gfx::ScaleSize() similar to Rect/Point. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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: ui/gfx/rect_f.h
diff --git a/ui/gfx/rect_f.h b/ui/gfx/rect_f.h
index f4d9bca0f02cb78027d3a48bb21adfbec5a364bc..f3e1ebfb45aacf36bb5de1acc545c3e40604c620 100644
--- a/ui/gfx/rect_f.h
+++ b/ui/gfx/rect_f.h
@@ -35,9 +35,7 @@ class UI_EXPORT RectF
void Scale(float x_scale, float y_scale) {
set_origin(ScalePoint(origin(), x_scale, y_scale));
-
- SizeF newSize = size().Scale(x_scale, y_scale);
tfarina 2012/11/09 13:05:37 nit: newSize, tisk, tisk :( s/newSize/new_size.
danakj 2012/11/09 16:11:38 I'm removing this code.
- set_size(newSize);
+ set_size(ScaleSize(size(), x_scale, y_scale));
}
// This method reports if the RectF can be safely converted to an integer
« no previous file with comments | « ui/gfx/image/image_skia_operations.cc ('k') | ui/gfx/size.h » ('j') | ui/gfx/size_f.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698