Commit 580adecc authored by Caroline Rising's avatar Caroline Rising Committed by Commit Bot

Fix bug where hover cards were showing when exiting the tab during the delay...

Fix bug where hover cards were showing when exiting the tab during the delay before showing a hover card.

Bug: 910739
Change-Id: Ia86099879e19fc1d43a4b3527c9b3cc2f63d872b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1617083Reviewed-by: default avatarDana Fried <dfried@chromium.org>
Commit-Queue: Caroline Rising <corising@chromium.org>
Cr-Commit-Position: refs/heads/master@{#660936}
parent 2011c945
...@@ -379,10 +379,10 @@ void TabHoverCardBubbleView::UpdateAndShow(Tab* tab) { ...@@ -379,10 +379,10 @@ void TabHoverCardBubbleView::UpdateAndShow(Tab* tab) {
} }
void TabHoverCardBubbleView::FadeOutToHide() { void TabHoverCardBubbleView::FadeOutToHide() {
delayed_show_timer_.Stop();
if (!widget_->IsVisible()) if (!widget_->IsVisible())
return; return;
slide_animation_delegate_->StopAnimation(); slide_animation_delegate_->StopAnimation();
delayed_show_timer_.Stop();
last_visible_timestamp_ = base::TimeTicks::Now(); last_visible_timestamp_ = base::TimeTicks::Now();
if (disable_animations_for_testing_) { if (disable_animations_for_testing_) {
widget_->Hide(); widget_->Hide();
......
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