diff options
author | andybons@chromium.org <andybons@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-02 17:29:43 +0000 |
---|---|---|
committer | andybons@chromium.org <andybons@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-02 17:29:43 +0000 |
commit | 8a34e660e7b6627b71a3b24e6800090f239075bb (patch) | |
tree | e76c3a12d82cd6e6d8dc467596316f0666fd1296 /chrome/browser/gtk/tabs/tab_renderer_gtk.cc | |
parent | 0b4158e6bc07aea93651c05c3bf26c2152bd9842 (diff) | |
download | chromium_src-8a34e660e7b6627b71a3b24e6800090f239075bb.zip chromium_src-8a34e660e7b6627b71a3b24e6800090f239075bb.tar.gz chromium_src-8a34e660e7b6627b71a3b24e6800090f239075bb.tar.bz2 |
Rip out phantom tabs and corresponding unit tests.
Also get rid of the type enum passed to TabReplacedAt since it can only be one option after phantom tabs are removed.
BUG=none
TEST=compile? good. pass tests? good.
Review URL: http://codereview.chromium.org/3539010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61303 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/tabs/tab_renderer_gtk.cc')
-rw-r--r-- | chrome/browser/gtk/tabs/tab_renderer_gtk.cc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/chrome/browser/gtk/tabs/tab_renderer_gtk.cc b/chrome/browser/gtk/tabs/tab_renderer_gtk.cc index 4dc40a7..51c71cc 100644 --- a/chrome/browser/gtk/tabs/tab_renderer_gtk.cc +++ b/chrome/browser/gtk/tabs/tab_renderer_gtk.cc @@ -275,7 +275,6 @@ TabRendererGtk::~TabRendererGtk() { } void TabRendererGtk::UpdateData(TabContents* contents, - bool phantom, bool app, bool loading_only) { DCHECK(contents); @@ -292,7 +291,6 @@ void TabRendererGtk::UpdateData(TabContents* contents, else data_.favicon = contents->GetFavIcon(); - data_.phantom = phantom; data_.app = app; // This is kind of a hacky way to determine whether our icon is the default // favicon. But the plumbing that would be necessary to do it right would @@ -612,12 +610,7 @@ void TabRendererGtk::Paint(gfx::Canvas* canvas) { show_close_button != showing_close_button_) Layout(); - if (!phantom()) { - // TODO: this isn't quite right. To match the Windows side we need to render - // phantom tabs to a separate layer than alpha composite that. This will do - // for now though. - PaintTabBackground(canvas); - } + PaintTabBackground(canvas); if (!mini() || width() > kMiniTabRendererAsNormalTabWidth) PaintTitle(canvas); |