diff options
Diffstat (limited to 'chrome/browser/cocoa/tab_view.mm')
-rw-r--r-- | chrome/browser/cocoa/tab_view.mm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/tab_view.mm b/chrome/browser/cocoa/tab_view.mm index b403f74..8873727 100644 --- a/chrome/browser/cocoa/tab_view.mm +++ b/chrome/browser/cocoa/tab_view.mm @@ -599,6 +599,11 @@ const CGFloat kRapidCloseDist = 2.5; } - (void)drawRect:(NSRect)rect { + // If this tab is phantom, do not draw the tab background itself. The only UI + // element that will represent this tab is the favicon. + if ([controller_ phantom]) + return; + NSGraphicsContext* context = [NSGraphicsContext currentContext]; [context saveGraphicsState]; rect = [self bounds]; @@ -863,6 +868,14 @@ const CGFloat kRapidCloseDist = 2.5; @end // @implementation TabView +@implementation TabView (TabControllerInterface) + +- (void)setController:(TabController*)controller { + controller_ = controller; +} + +@end // @implementation TabView (TabControllerInterface) + @implementation TabView(Private) - (void)resetLastGlowUpdateTime { |