Chromium Code Reviews| Index: chrome/browser/cocoa/tab_window_controller.mm |
| =================================================================== |
| --- chrome/browser/cocoa/tab_window_controller.mm (revision 52487) |
| +++ chrome/browser/cocoa/tab_window_controller.mm (working copy) |
| @@ -65,9 +65,10 @@ |
| // view hierarchy as a sibling of the content view so it can overlap with the |
| // window frame. |
| - (void)addTopTabStripToWindow { |
| + NSRect contentFrame = [tabContentArea_ frame]; |
| NSRect tabFrame = |
| - NSMakeRect(0, NSMaxY(tabFrame), |
|
viettrungluu
2010/07/15 17:55:34
I feel like the compiler should have noticed somet
|
| - NSWidth([tabContentArea_ frame]), |
| + NSMakeRect(0, NSMaxY(contentFrame), |
| + NSWidth(contentFrame), |
| NSHeight([topTabStripView_ frame])); |
| [topTabStripView_ setFrame:tabFrame]; |
| NSView* contentParent = [[[self window] contentView] superview]; |