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

Unified Diff: ui/gfx/quad_f.cc

Issue 11369144: ui: Make gfx::Point::Scale() mutate the class, similar to gfx::Rect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes for aura 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/quad_f.cc
diff --git a/ui/gfx/quad_f.cc b/ui/gfx/quad_f.cc
index 0ef7c5814c75418eb2a9d45b6daa08f475d0a3ec..0ca501f345d964b2a23a7b7b10b88555672c9120 100644
--- a/ui/gfx/quad_f.cc
+++ b/ui/gfx/quad_f.cc
@@ -131,10 +131,10 @@ RectF QuadF::BoundingBox() const {
}
void QuadF::Scale(float x_scale, float y_scale) {
- p1_ = p1_.Scale(x_scale, y_scale);
- p2_ = p2_.Scale(x_scale, y_scale);
- p3_ = p3_.Scale(x_scale, y_scale);
- p4_ = p4_.Scale(x_scale, y_scale);
+ p1_.Scale(x_scale, y_scale);
+ p2_.Scale(x_scale, y_scale);
+ p3_.Scale(x_scale, y_scale);
+ p4_.Scale(x_scale, y_scale);
}
void QuadF::operator+=(const Vector2dF& rhs) {
« cc/layer_impl.cc ('K') | « ui/gfx/point_unittest.cc ('k') | ui/gfx/quad_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698