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

Unified Diff: ui/views/animation/ink_drop_mask.cc

Issue 2832223003: Update profile switcher button on Linux. (Closed)
Patch Set: self review Created 3 years, 8 months 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/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);
}

Powered by Google App Engine
This is Rietveld 408576698