summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorrsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-06 16:24:42 +0000
committerrsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-06 16:24:42 +0000
commit1ad97cad62acf7adce661c009a6ee1d65d92e2d1 (patch)
treeedf0066fcbb792dfa738896efd43d2ca1104d485 /chrome
parentbc1095bc48cbeb7e4f1292eee4069cb0cffa0e29 (diff)
downloadchromium_src-1ad97cad62acf7adce661c009a6ee1d65d92e2d1.zip
chromium_src-1ad97cad62acf7adce661c009a6ee1d65d92e2d1.tar.gz
chromium_src-1ad97cad62acf7adce661c009a6ee1d65d92e2d1.tar.bz2
[Mac] Add a call to |-layoutTabs| so that restored pinned tabs look as they should.
BUG=39900 TEST=Open a new tab, navigate, and pin it. Close the window. Restore the window. Tab should still appear pinned. Review URL: http://codereview.chromium.org/1628004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43720 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/cocoa/tab_strip_controller.mm4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/tab_strip_controller.mm b/chrome/browser/cocoa/tab_strip_controller.mm
index 354a197..84297eb 100644
--- a/chrome/browser/cocoa/tab_strip_controller.mm
+++ b/chrome/browser/cocoa/tab_strip_controller.mm
@@ -1252,6 +1252,10 @@ private:
[tabController setMini:
(tabStripModel_->IsMiniTab(modelIndex) ? YES : NO)];
[self updateFavIconForContents:contents atIndex:modelIndex];
+ // If the tab is being restored and it's pinned, the mini state is set after
+ // the tab has already been rendered, so re-layout the tabstrip. In all other
+ // cases, the state is set before the tab is rendered so this isn't needed.
+ [self layoutTabs];
}
- (void)setFrameOfSelectedTab:(NSRect)frame {