summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorbeng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-12 23:20:28 +0000
committerbeng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-12 23:20:28 +0000
commit199a9c2e4033ad691656e47fe1393befc4169e95 (patch)
tree51722fa481ba9877e009c9e68997f79be204a3c8 /chrome
parent6f9101b53c73f0509a9dfb522b92d58791660825 (diff)
downloadchromium_src-199a9c2e4033ad691656e47fe1393befc4169e95.zip
chromium_src-199a9c2e4033ad691656e47fe1393befc4169e95.tar.gz
chromium_src-199a9c2e4033ad691656e47fe1393befc4169e95.tar.bz2
Fix black flash when detaching tabs.
B=2199 Review URL: http://codereview.chromium.org/3028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2145 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/browser.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc
index 4d71b37..8f4145b 100644
--- a/chrome/browser/browser.cc
+++ b/chrome/browser/browser.cc
@@ -1297,10 +1297,10 @@ void Browser::CreateNewStripWithContents(TabContents* detached_contents,
Browser* new_window =
new Browser(rect, SW_SHOWNORMAL, profile_, BrowserType::TABBED_BROWSER,
std::wstring());
- // Need to do this _before_ appending the TabContents so that the window is
- // appropriately sized.
- new_window->Show();
+ // Append the TabContents before showing it so the window doesn't flash
+ // black.
new_window->tabstrip_model()->AppendTabContents(detached_contents, true);
+ new_window->Show();
// When we detach a tab we need to make sure any associated Find window moves
// along with it to its new home (basically we just make new_window the parent