summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/views/tabs/dragged_tab_controller.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/views/tabs/dragged_tab_controller.cc b/chrome/browser/views/tabs/dragged_tab_controller.cc
index b0a162d..0ff61d5 100644
--- a/chrome/browser/views/tabs/dragged_tab_controller.cc
+++ b/chrome/browser/views/tabs/dragged_tab_controller.cc
@@ -1134,8 +1134,12 @@ void DraggedTabController::OnAnimateToBoundsComplete() {
// detach even though we aren't attached to a TabStrip. Guard against that.
if (attached_tabstrip_) {
Tab* tab = GetTabMatchingDraggedContents(attached_tabstrip_);
- if (tab)
+ if (tab) {
tab->SetVisible(true);
+ // Paint the tab now, otherwise there may be slight flicker between the
+ // time the dragged tab window is destroyed and we paint.
+ tab->PaintNow();
+ }
}
CleanUpHiddenFrame();