| Index: ui/views/animation/ink_drop_impl.cc
|
| diff --git a/ui/views/animation/ink_drop_impl.cc b/ui/views/animation/ink_drop_impl.cc
|
| index 9d65896d2848b73d939d963653480a669c01e7a9..c252d325fb0893d7fdee6f6d11d11caacf0f4670 100644
|
| --- a/ui/views/animation/ink_drop_impl.cc
|
| +++ b/ui/views/animation/ink_drop_impl.cc
|
| @@ -74,6 +74,12 @@ InkDropState InkDropImpl::GetTargetInkDropState() const {
|
| }
|
|
|
| void InkDropImpl::AnimateToState(InkDropState ink_drop_state) {
|
| + // Never animate hidden -> hidden, since that will add layers which may never
|
| + // be needed. Other same-state transitions may restart animations.
|
| + if (ink_drop_state == InkDropState::HIDDEN &&
|
| + GetTargetInkDropState() == InkDropState::HIDDEN)
|
| + return;
|
| +
|
| DestroyHiddenTargetedAnimations();
|
| if (!ink_drop_ripple_)
|
| CreateInkDropRipple();
|
|
|