Chromium Code Reviews| Index: ui/gfx/rect_f.h |
| diff --git a/ui/gfx/rect_f.h b/ui/gfx/rect_f.h |
| index fbdeb4e157a0c6551550fdf4b7af6c6e06fe110c..c6f730d3cc8b05e2cf094a26c47073a65aa3b752 100644 |
| --- a/ui/gfx/rect_f.h |
| +++ b/ui/gfx/rect_f.h |
| @@ -27,14 +27,15 @@ class UI_EXPORT RectF : public RectBase<RectF, PointF, SizeF, InsetsF, float> { |
| ~RectF(); |
| /// Scales the rectangle by |scale|. |
| - RectF Scale(float scale) const WARN_UNUSED_RESULT { |
| + void Scale(float scale) { |
| return Scale(scale, scale); |
|
sky
2012/10/12 16:26:38
remove 'return' value.
danakj
2012/10/19 20:33:53
Done.
|
| } |
| - RectF Scale(float x_scale, float y_scale) const WARN_UNUSED_RESULT { |
| + void Scale(float x_scale, float y_scale) { |
| SizeF newSize = size().Scale(x_scale, y_scale); |
| newSize.ClampToNonNegative(); |
| - return RectF(origin().Scale(x_scale, y_scale), newSize); |
| + set_origin(origin().Scale(x_scale, y_scale)); |
| + set_size(newSize); |
| } |
| std::string ToString() const; |