summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tabs
diff options
context:
space:
mode:
authorcpu@chromium.org <cpu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-10 20:49:47 +0000
committercpu@chromium.org <cpu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-10 20:49:47 +0000
commit1d69f01c485fc1adc7669f923c827d754a4e9027 (patch)
tree3fde1228fc6e211422f47dd91fb316b4e27d5c75 /chrome/browser/tabs
parentb94e92909f76a2a3024a21d4165cab8362352931 (diff)
downloadchromium_src-1d69f01c485fc1adc7669f923c827d754a4e9027.zip
chromium_src-1d69f01c485fc1adc7669f923c827d754a4e9027.tar.gz
chromium_src-1d69f01c485fc1adc7669f923c827d754a4e9027.tar.bz2
Fix my change to flashing tab
- I commited the last experiment, not what I meant to commit, sorry. TBR=darin BUG=21481 TEST=see bug Review URL: http://codereview.chromium.org/193076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25911 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tabs')
-rw-r--r--chrome/browser/tabs/tab_strip_model.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome/browser/tabs/tab_strip_model.cc b/chrome/browser/tabs/tab_strip_model.cc
index 3fd5af6..a10c9fe 100644
--- a/chrome/browser/tabs/tab_strip_model.cc
+++ b/chrome/browser/tabs/tab_strip_model.cc
@@ -399,12 +399,11 @@ void TabStripModel::AddTabContents(TabContents* contents,
// new background tab.
if (TabContents* old_contents = GetSelectedTabContents()) {
if (!foreground) {
- contents->HideContents();
contents->view()->SizeContents(old_contents->view()->GetContainerSize());
// We need to hide the contents or else we get and execute paints for
// background tabs. With enough background tabs they will steal the
// backing store of the visible tab causing flashing. See bug 20831.
-
+ contents->HideContents();
}
}
}