Commit 1d69f01c authored by cpu@chromium.org's avatar cpu@chromium.org

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
parent b94e9290
......@@ -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();
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment