Commit dcfd4c8d authored by Dana Fried's avatar Dana Fried Committed by Commit Bot

Fix bug where highlight would flash on avatar button on new tab.

Bug: 1123809
Change-Id: Ifddfa6447685322b5a1fd3484718ddcdfa754c55
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2387540Reviewed-by: default avatarCaroline Rising <corising@chromium.org>
Commit-Queue: Dana Fried <dfried@chromium.org>
Cr-Commit-Position: refs/heads/master@{#803581}
parent 161823de
...@@ -119,7 +119,11 @@ void LocalCardMigrationIconView::UpdateImpl() { ...@@ -119,7 +119,11 @@ void LocalCardMigrationIconView::UpdateImpl() {
break; break;
} }
} else { } else {
SetHighlighted(false); // Fade out inkdrop but only if icon was actually highlighted. Calling
// SetHighlighted() can result in a spurious fade-out animation and visual
// glitches.
if (this->GetHighlighted())
SetHighlighted(false);
// Handle corner cases where users navigate away or close the tab. // Handle corner cases where users navigate away or close the tab.
UnpauseAnimation(); UnpauseAnimation();
} }
......
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