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

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

Issue 2499453002: Add ink drop ripple to overview mode button (Closed)
Patch Set: Addressed review comments Created 4 years, 1 month 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_impl.cc
diff --git a/ui/views/animation/ink_drop_impl.cc b/ui/views/animation/ink_drop_impl.cc
index 0ec1aefd6149484a5282fd9309cbd50a28bf1733..9ee6ebb60f7d2ea77c97eb29d11f92823d92895a 100644
--- a/ui/views/animation/ink_drop_impl.cc
+++ b/ui/views/animation/ink_drop_impl.cc
@@ -707,6 +707,9 @@ void InkDropImpl::AnimationEnded(InkDropState ink_drop_state,
highlight_state_->AnimationEnded(ink_drop_state, reason);
if (reason != InkDropAnimationEndedReason::SUCCESS)
return;
+ // |ink_drop_ripple_| might be null during destruction.
+ if (!ink_drop_ripple_)
+ return;
if (ShouldAnimateToHidden(ink_drop_state)) {
ink_drop_ripple_->AnimateToState(views::InkDropState::HIDDEN);
} else if (ink_drop_state == views::InkDropState::HIDDEN) {

Powered by Google App Engine
This is Rietveld 408576698