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

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

Issue 2094343005: Fix MD button hover shadow effect on odd-sized buttons. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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_host_view.cc
diff --git a/ui/views/animation/ink_drop_host_view.cc b/ui/views/animation/ink_drop_host_view.cc
index e6b1e424155d41e75056cdf1744fc2e7e2684fcc..ac5a1ffe4c469b7473518cc73fffed43c29b550a 100644
--- a/ui/views/animation/ink_drop_host_view.cc
+++ b/ui/views/animation/ink_drop_host_view.cc
@@ -142,7 +142,8 @@ std::unique_ptr<InkDropRipple> InkDropHostView::CreateInkDropRipple() const {
std::unique_ptr<InkDropHighlight> InkDropHostView::CreateInkDropHighlight()
const {
- return CreateDefaultInkDropHighlight(GetLocalBounds().CenterPoint());
+ return CreateDefaultInkDropHighlight(
+ gfx::RectF(GetLocalBounds()).CenterPoint());
}
std::unique_ptr<InkDropRipple> InkDropHostView::CreateDefaultInkDropRipple(
@@ -156,7 +157,7 @@ std::unique_ptr<InkDropRipple> InkDropHostView::CreateDefaultInkDropRipple(
std::unique_ptr<InkDropHighlight>
InkDropHostView::CreateDefaultInkDropHighlight(
- const gfx::Point& center_point) const {
+ const gfx::PointF& center_point) const {
std::unique_ptr<InkDropHighlight> highlight(
new InkDropHighlight(ink_drop_size_, kInkDropSmallCornerRadius,
center_point, GetInkDropBaseColor()));

Powered by Google App Engine
This is Rietveld 408576698