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

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

Issue 2786543002: Make updates to InkDropHighlight to pave the way for improved ink drops (Closed)
Patch Set: improved docs Created 3 years, 9 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/square_ink_drop_ripple.cc
diff --git a/ui/views/animation/square_ink_drop_ripple.cc b/ui/views/animation/square_ink_drop_ripple.cc
index 6a635a5e8cf6a15a4e10b615ffe32e4b5eef5a30..94fa10dbbda3378fd5f0b85222a6d1e32976fdf7 100644
--- a/ui/views/animation/square_ink_drop_ripple.cc
+++ b/ui/views/animation/square_ink_drop_ripple.cc
@@ -197,7 +197,8 @@ SquareInkDropRipple::SquareInkDropRipple(const gfx::Size& large_size,
circle_layer_delegate_(new CircleLayerDelegate(
color,
std::min(large_size_.width(), large_size_.height()) / 2)),
- rect_layer_delegate_(new RectangleLayerDelegate(color, large_size_)),
+ rect_layer_delegate_(
+ new RectangleLayerDelegate(color, gfx::SizeF(large_size_))),
root_layer_(ui::LAYER_NOT_DRAWN) {
root_layer_.set_name("SquareInkDropRipple:ROOT_LAYER");

Powered by Google App Engine
This is Rietveld 408576698