Reset AnimationRunner when a view is removed from widget
We were depending on view_->GetWidget() to see if the view is removed from a widget or not. But in ViewObserver::OnViewRemovedFromWidget(), GetWidget() may return valud widget. It's because View's parent pointer is still valid at this point. Please see GetWidget() implementation. So explicitly clear animation runner without checking GetWidget(). note: tried invalidating parent pointer before the propagation, but caused crash. it seems some classes are using GetWidget() in the OnViewRemovedFromWidget(). Bug: 1082633 Change-Id: I607f1845002398fa24311dcf697f52f19f25aa8e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2212109 Commit-Queue: Sang Woo Ko <sangwoo108@chromium.org> Reviewed-by:Peter Kasting <pkasting@chromium.org> Cr-Commit-Position: refs/heads/master@{#772115}
Showing
Please register or sign in to comment