Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8400)

Unified Diff: chrome/browser/views/tabs/dragged_tab_controller.cc

Issue 13221: Fixes possible flicker when tab finishes animating back to dragged... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/tabs/dragged_tab_controller.cc
===================================================================
--- chrome/browser/views/tabs/dragged_tab_controller.cc (revision 6401)
+++ chrome/browser/views/tabs/dragged_tab_controller.cc (working copy)
@@ -1134,8 +1134,12 @@
// 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();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698