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

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

Issue 2839953005: Round the corners of bookmark button ink drop effects. (Closed)
Patch Set: move macro 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
« no previous file with comments | « ui/views/animation/ink_drop_mask.h ('k') | ui/views/controls/button/label_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
bounds.Inset(mask_insets_);
recorder.canvas()->DrawRoundRect(bounds, corner_radius_, flags);
}
« no previous file with comments | « ui/views/animation/ink_drop_mask.h ('k') | ui/views/controls/button/label_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698