| 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 9748c8b01e086e0f53bd6e1c33a92d712e9fe6a1..cbf80ff3c6136fa1689cf453a7ccee787a22018f 100644
|
| --- a/ui/views/animation/ink_drop_host_view.cc
|
| +++ b/ui/views/animation/ink_drop_host_view.cc
|
| @@ -157,13 +157,14 @@ std::unique_ptr<InkDrop> InkDropHostView::CreateInkDrop() {
|
| }
|
|
|
| std::unique_ptr<InkDropRipple> InkDropHostView::CreateInkDropRipple() const {
|
| - return CreateDefaultInkDropRipple(GetLocalBounds().CenterPoint());
|
| + return CreateDefaultInkDropRipple(
|
| + GetMirroredRect(GetContentsBounds()).CenterPoint());
|
| }
|
|
|
| std::unique_ptr<InkDropHighlight> InkDropHostView::CreateInkDropHighlight()
|
| const {
|
| return CreateDefaultInkDropHighlight(
|
| - gfx::RectF(GetLocalBounds()).CenterPoint());
|
| + gfx::RectF(GetMirroredRect(GetContentsBounds())).CenterPoint());
|
| }
|
|
|
| std::unique_ptr<InkDropRipple> InkDropHostView::CreateDefaultInkDropRipple(
|
| @@ -198,7 +199,7 @@ void InkDropHostView::SetInkDropMode(InkDropMode ink_drop_mode) {
|
| gfx::Point InkDropHostView::GetInkDropCenterBasedOnLastEvent() const {
|
| return last_ripple_triggering_event_
|
| ? last_ripple_triggering_event_->location()
|
| - : GetLocalBounds().CenterPoint();
|
| + : GetMirroredRect(GetContentsBounds()).CenterPoint();
|
| }
|
|
|
| void InkDropHostView::AnimateInkDrop(InkDropState state,
|
|
|