Chromium Code Reviews| Index: chrome/browser/tabs/tab_strip_model.cc |
| =================================================================== |
| --- chrome/browser/tabs/tab_strip_model.cc (revision 25038) |
| +++ chrome/browser/tabs/tab_strip_model.cc (working copy) |
| @@ -398,8 +398,13 @@ |
| // layout is performed with sane view dimensions even when we're opening a |
| // new background tab. |
| if (TabContents* old_contents = GetSelectedTabContents()) { |
| - if (!foreground) |
| + if (!foreground) { |
| 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(); |
|
darin (slow to review)
2009/09/04 06:25:57
shouldn't we hide the contents before we size them
|
| + } |
| } |
| } |