From c5a83a32f5621918a4bb78b5b4101a350d92189d Mon Sep 17 00:00:00 2001
From: "rsesek@chromium.org"
 <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Date: Tue, 6 Apr 2010 19:43:07 +0000
Subject: Revert 43741 - [Mac] Make Mac phantom tabs match the appearance of
 the other platforms.

BUG=none
TEST=Open a new tab, navigate, and pin it. Open a new tab. Close the pinned tab. No tab background should be drawn, just the favicon.

Review URL: http://codereview.chromium.org/1562014

TBR=rsesek@chromium.org
Review URL: http://codereview.chromium.org/1627004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43744 0039d316-1c4b-4281-b951-d872f2087c98
---
 chrome/browser/cocoa/tab_view.mm | 5 -----
 1 file changed, 5 deletions(-)

(limited to 'chrome/browser/cocoa/tab_view.mm')

diff --git a/chrome/browser/cocoa/tab_view.mm b/chrome/browser/cocoa/tab_view.mm
index 80b5970..b403f74 100644
--- a/chrome/browser/cocoa/tab_view.mm
+++ b/chrome/browser/cocoa/tab_view.mm
@@ -599,11 +599,6 @@ 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];
-- 
cgit v1.1