Index: ui/views/animation/ink_drop_mask.cc |
diff --git a/ui/views/animation/ink_drop_mask.cc b/ui/views/animation/ink_drop_mask.cc |
index de839a9eecc315059d932e0dffaeaab2f7f3834f..d95286d91c995e268c245e080076458c1def3b8f 100644 |
--- a/ui/views/animation/ink_drop_mask.cc |
+++ b/ui/views/animation/ink_drop_mask.cc |
@@ -35,7 +35,7 @@ void InkDropMask::OnDeviceScaleFactorChanged(float device_scale_factor) {} |
// RoundRectInkDropMask |
RoundRectInkDropMask::RoundRectInkDropMask(const gfx::Size& layer_size, |
- const gfx::Insets& mask_insets, |
+ const gfx::InsetsF& mask_insets, |
int corner_radius) |
: InkDropMask(layer_size), |
mask_insets_(mask_insets), |
@@ -48,7 +48,7 @@ void RoundRectInkDropMask::OnPaintLayer(const ui::PaintContext& context) { |
flags.setAntiAlias(true); |
ui::PaintRecorder recorder(context, layer()->size()); |
- gfx::Rect bounds = layer()->bounds(); |
+ gfx::RectF bounds(layer()->bounds()); |
Peter Kasting
2017/04/27 02:13:18
Nit: I think this should have stayed as = per http
Evan Stade
2017/04/27 20:28:51
can't do that for rect=>rectf
|
bounds.Inset(mask_insets_); |
recorder.canvas()->DrawRoundRect(bounds, corner_radius_, flags); |
} |