diff options
Diffstat (limited to 'views/animation')
-rw-r--r-- | views/animation/bounds_animator.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/views/animation/bounds_animator.cc b/views/animation/bounds_animator.cc index 65ba415..fc23e38 100644 --- a/views/animation/bounds_animator.cc +++ b/views/animation/bounds_animator.cc @@ -87,6 +87,13 @@ const SlideAnimation* BoundsAnimator::GetAnimationForView(View* view) { void BoundsAnimator::SetAnimationDelegate(View* view, AnimationDelegate* delegate, bool delete_when_done) { +#if defined(OS_LINUX) + if (!IsAnimating(view)) + LOG(ERROR) << "SetAnimationDelegate: not animating view"; + if (data_[view].delegate) + LOG(ERROR) << "SetAnimationDelegate: delegate already set: leaking"; +#endif + DCHECK(IsAnimating(view)); data_[view].delegate = delegate; data_[view].delete_delegate_when_done = delete_when_done; @@ -111,6 +118,10 @@ void BoundsAnimator::Cancel() { if (data_.empty()) return; +#if defined(OS_LINUX) + LOG(ERROR) << "Cancelling animations"; +#endif + while (!data_.empty()) data_.begin()->second.animation->Stop(); |