diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-19 20:50:43 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-19 20:50:43 +0000 |
commit | 6dc6aaff3876210edf845a93e98b0d6d83b083ef (patch) | |
tree | f45d20277969a6b33b27194e7604de9419ff67bb /chrome/browser/gtk/tabs | |
parent | b086dac54cdcf764cbfea528dff68d4ae7da5854 (diff) | |
download | chromium_src-6dc6aaff3876210edf845a93e98b0d6d83b083ef.zip chromium_src-6dc6aaff3876210edf845a93e98b0d6d83b083ef.tar.gz chromium_src-6dc6aaff3876210edf845a93e98b0d6d83b083ef.tar.bz2 |
Revert 39489 - Changes the rendering of minitabs slightly:
. the icons of minitabs scales up to 24x24 on mouse over.
. phantom tabs are rendered in their own layer behind other tabs at
40% opacity. The icon for phantom tabs are rendered at 60% opactiy.
BUG=32845
TEST=none
Review URL: http://codereview.chromium.org/646067
TBR=sky@chromium.org
Review URL: http://codereview.chromium.org/650062
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39490 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/tabs')
-rw-r--r-- | chrome/browser/gtk/tabs/tab_renderer_gtk.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/gtk/tabs/tab_renderer_gtk.cc b/chrome/browser/gtk/tabs/tab_renderer_gtk.cc index 861ff04..c37b4f1 100644 --- a/chrome/browser/gtk/tabs/tab_renderer_gtk.cc +++ b/chrome/browser/gtk/tabs/tab_renderer_gtk.cc @@ -844,6 +844,9 @@ void TabRendererGtk::PaintIcon(gfx::Canvas* canvas) { void TabRendererGtk::PaintTabBackground(gfx::Canvas* canvas) { if (IsSelected()) { + // Sometimes detaching a tab quickly can result in the model reporting it + // as not being selected, so is_drag_clone_ ensures that we always paint + // the active representation for the dragged tab. PaintActiveTabBackground(canvas); } else { PaintInactiveTabBackground(canvas); |