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

Unified Diff: ui/gfx/shadow_value.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/shadow_value.cc
diff --git a/ui/gfx/shadow_value.cc b/ui/gfx/shadow_value.cc
index 0602c2d31b1d7b926f4334bb49e723d85e8718f9..adfe0b888af5793780288f7ad408a6a85046a600 100644
--- a/ui/gfx/shadow_value.cc
+++ b/ui/gfx/shadow_value.cc
@@ -29,7 +29,8 @@ ShadowValue::~ShadowValue() {
}
ShadowValue ShadowValue::Scale(float scale) const {
- gfx::Point scaled_offset = gfx::ToFlooredPoint(offset_.Scale(scale));
+ gfx::Point scaled_offset =
+ gfx::ToFlooredPoint(gfx::ScalePoint(offset_, scale));
return ShadowValue(scaled_offset, blur_ * scale, color_);
}
« cc/layer_impl.cc ('K') | « ui/gfx/rect_f.h ('k') | webkit/glue/webcursor_aurax11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698