From ee824a436efbdeed4ca78efc4dd2aa4976ba43a9 Mon Sep 17 00:00:00 2001 From: "sky@google.com" Date: Sat, 6 Dec 2008 19:29:28 +0000 Subject: Fixes possible flicker when tab finishes animating back to dragged position. BUG=NONE TEST=none Review URL: http://codereview.chromium.org/13221 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6489 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/views/tabs/dragged_tab_controller.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'chrome/browser/views') 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(); -- cgit v1.1