diff options
author | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-06 19:29:28 +0000 |
---|---|---|
committer | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-06 19:29:28 +0000 |
commit | ee824a436efbdeed4ca78efc4dd2aa4976ba43a9 (patch) | |
tree | 617595b2bad8fec9687dc5d6bae4b0de5a684b10 /chrome/browser/views/tabs | |
parent | 70c8091cae43ea41f6d8fdf9dd41665290cd7379 (diff) | |
download | chromium_src-ee824a436efbdeed4ca78efc4dd2aa4976ba43a9.zip chromium_src-ee824a436efbdeed4ca78efc4dd2aa4976ba43a9.tar.gz chromium_src-ee824a436efbdeed4ca78efc4dd2aa4976ba43a9.tar.bz2 |
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
Diffstat (limited to 'chrome/browser/views/tabs')
-rw-r--r-- | chrome/browser/views/tabs/dragged_tab_controller.cc | 6 |
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(); |