diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-15 19:34:28 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-15 19:34:28 +0000 |
commit | 9af7038ba77d004b22397c43218fba458e504e1b (patch) | |
tree | 9de2bce7f546b0c36675db0617226dca0eac6d05 /chrome/browser/tabs | |
parent | 9442bda2e1124c312cfe515f05ba3c970d132361 (diff) | |
download | chromium_src-9af7038ba77d004b22397c43218fba458e504e1b.zip chromium_src-9af7038ba77d004b22397c43218fba458e504e1b.tar.gz chromium_src-9af7038ba77d004b22397c43218fba458e504e1b.tar.bz2 |
Fix for Issue 3258: Tabs created when tabstrip is compressed pending resize
relayout should not force resize relayout.
This is proposed solution one from the comment#5 which is to
create new tabs without resizing existing tabs unless there is
no room for the new tab.
BUG=3258
Change from Itai Danan (idanan@google.com)
Code review: http://codereview.chromium.org/14050
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8109 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tabs')
-rw-r--r-- | chrome/browser/tabs/tab_strip_model.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/tabs/tab_strip_model.cc b/chrome/browser/tabs/tab_strip_model.cc index 2e42a64..3b0c4bb 100644 --- a/chrome/browser/tabs/tab_strip_model.cc +++ b/chrome/browser/tabs/tab_strip_model.cc @@ -533,7 +533,7 @@ bool TabStripModel::InternalCloseTabContentsAt(int index, // them. Once they have fired, we'll get a message back saying whether // to proceed closing the page or not, which sends us back to this method // with the HasUnloadListener bit cleared. - WebContents* web_contents = GetContentsAt(index)->AsWebContents(); + WebContents* web_contents = detached_contents->AsWebContents(); // If we hit this code path, the tab had better be a WebContents tab. DCHECK(web_contents); web_contents->render_view_host()->FirePageBeforeUnload(); |