Commit 1b56a7ac authored by wutao's avatar wutao Committed by Commit Bot

assistant: Stop logo view animation if not drawn

This cl fixes a bug to stop logo view animation when the view is not
drawn.

Bug: 1044320
Test: manual
Change-Id: Ifa8b3f8ae1cf2c66b58ff2ff778599263ade7166
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2015608Reviewed-by: default avatarXiaohui Chen <xiaohuic@chromium.org>
Commit-Queue: Tao Wu <wutao@chromium.org>
Cr-Commit-Position: refs/heads/master@{#734262}
parent 18a11863
......@@ -217,7 +217,7 @@ void LogoViewImpl::OnBoundsChanged(const gfx::Rect& previous_bounds) {
void LogoViewImpl::VisibilityChanged(views::View* starting_from,
bool is_visible) {
if (is_visible)
if (IsDrawn())
state_animator_.StartAnimator();
else
state_animator_.StopAnimator();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment