Index: chrome/browser/ui/cocoa/browser_window_controller_private.mm |
diff --git a/chrome/browser/ui/cocoa/browser_window_controller_private.mm b/chrome/browser/ui/cocoa/browser_window_controller_private.mm |
index 7b6cc3e37b89c0502e5fb8e9b44669d5041e9057..bcd4443c94acb143b50ff93e3529e2f4dfd03ccd 100644 |
--- a/chrome/browser/ui/cocoa/browser_window_controller_private.mm |
+++ b/chrome/browser/ui/cocoa/browser_window_controller_private.mm |
@@ -190,7 +190,7 @@ willPositionSheet:(NSWindow*)sheet |
NSView* tabStripView = [self tabStripView]; |
CGFloat tabStripHeight = NSHeight([tabStripView frame]); |
maxY -= tabStripHeight; |
- [tabStripView setFrame:NSMakeRect(0, maxY, width, tabStripHeight)]; |
+ NSRect tabStripFrame = NSMakeRect(0, maxY, width, tabStripHeight); |
// In Yosemite fullscreen, manually add the fullscreen controls to the tab |
// strip. |
@@ -260,8 +260,10 @@ willPositionSheet:(NSWindow*)sheet |
} |
[tabStripController_ setRightIndentForControls:rightIndent]; |
- // Go ahead and layout the tabs. |
- [tabStripController_ layoutTabsWithoutAnimation]; |
+ if (!NSEqualRects(tabStripFrame, [tabStripView frame])) { |
Robert Sesek
2014/09/24 17:23:30
I'd copy part of the CL description to a comment h
Andre
2014/09/24 17:59:37
Done.
|
+ [tabStripView setFrame:tabStripFrame]; |
+ [tabStripController_ layoutTabsWithoutAnimation]; |
+ } |
return maxY; |
} |