Index: ui/gfx/shadow_value.cc |
diff --git a/ui/gfx/shadow_value.cc b/ui/gfx/shadow_value.cc |
index 09127ee5bfc7dd3a7da500026511e08bbc45646e..0602c2d31b1d7b926f4334bb49e723d85e8718f9 100644 |
--- a/ui/gfx/shadow_value.cc |
+++ b/ui/gfx/shadow_value.cc |
@@ -8,6 +8,7 @@ |
#include "base/stringprintf.h" |
#include "ui/gfx/insets.h" |
+#include "ui/gfx/point_conversions.h" |
namespace gfx { |
@@ -28,7 +29,8 @@ ShadowValue::~ShadowValue() { |
} |
ShadowValue ShadowValue::Scale(float scale) const { |
- return ShadowValue(offset_.Scale(scale), blur_ * scale, color_); |
+ gfx::Point scaled_offset = gfx::ToFlooredPoint(offset_.Scale(scale)); |
+ return ShadowValue(scaled_offset, blur_ * scale, color_); |
} |
std::string ShadowValue::ToString() const { |