diff options
author | anicolao@google.com <anicolao@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-21 04:03:20 +0000 |
---|---|---|
committer | anicolao@google.com <anicolao@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-21 04:03:20 +0000 |
commit | 130c42787ed2fe01c766e816b103fa864a9d2d95 (patch) | |
tree | 5b3b2bc4a6c15f056de05ac61a9dbe06cd588edb /chrome | |
parent | b3c903e857f5f25b86dfb159a21536c0ee8bad60 (diff) | |
download | chromium_src-130c42787ed2fe01c766e816b103fa864a9d2d95.zip chromium_src-130c42787ed2fe01c766e816b103fa864a9d2d95.tar.gz chromium_src-130c42787ed2fe01c766e816b103fa864a9d2d95.tar.bz2 |
Remove undisplayed tabs from the views hierarchy because event delivery doesn't respect z-order.
BUG=none
TEST=manually; open two tabs, switch between them and touch items
Review URL: http://codereview.chromium.org/5700003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69802 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/ui/views/tab_contents/tab_contents_container.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/ui/views/tab_contents/tab_contents_container.cc b/chrome/browser/ui/views/tab_contents/tab_contents_container.cc index 793e53c..47ed229 100644 --- a/chrome/browser/ui/views/tab_contents/tab_contents_container.cc +++ b/chrome/browser/ui/views/tab_contents/tab_contents_container.cc @@ -39,6 +39,9 @@ void TabContentsContainer::ChangeTabContents(TabContents* contents) { if (tab_contents_) { #if !defined(TOUCH_UI) native_container_->DetachContents(tab_contents_); +#else + views::View *v = static_cast<TabContentsViewViews*>(tab_contents_->view()); + RemoveChildView(v); #endif tab_contents_->WasHidden(); RemoveObservers(); |