| Index: chrome/browser/ui/views/tab_contents/tab_contents_container.cc
|
| 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 2e700524d2e342c9425ca0629926160c4c981888..b1d30cb3bdfdc6980aabd9a7e286c28b9b242a2d 100644
|
| --- a/chrome/browser/ui/views/tab_contents/tab_contents_container.cc
|
| +++ b/chrome/browser/ui/views/tab_contents/tab_contents_container.cc
|
| @@ -44,7 +44,6 @@ void TabContentsContainer::ChangeWebContents(WebContents* contents) {
|
| // When detaching the last tab of the browser ChangeWebContents is invoked
|
| // with NULL. Don't attempt to do anything in that case.
|
| if (web_contents_) {
|
| - RenderWidgetHostViewChanged(web_contents_->GetRenderWidgetHostView());
|
| native_container_->AttachContents(web_contents_);
|
| AddObservers();
|
| }
|
| @@ -62,15 +61,6 @@ void TabContentsContainer::SetFastResize(bool fast_resize) {
|
| native_container_->SetFastResize(fast_resize);
|
| }
|
|
|
| -void TabContentsContainer::SetReservedContentsRect(
|
| - const gfx::Rect& reserved_rect) {
|
| - cached_reserved_rect_ = reserved_rect;
|
| - if (web_contents_ && web_contents_->GetRenderWidgetHostView()) {
|
| - web_contents_->GetRenderWidgetHostView()->set_reserved_contents_rect(
|
| - reserved_rect);
|
| - }
|
| -}
|
| -
|
| ////////////////////////////////////////////////////////////////////////////////
|
| // TabContentsContainer, content::NotificationObserver implementation:
|
|
|
| @@ -187,8 +177,6 @@ void TabContentsContainer::RemoveObservers() {
|
|
|
| void TabContentsContainer::RenderViewHostChanged(RenderViewHost* old_host,
|
| RenderViewHost* new_host) {
|
| - if (new_host)
|
| - RenderWidgetHostViewChanged(new_host->view());
|
| native_container_->RenderViewHostChanged(old_host, new_host);
|
| }
|
|
|
| @@ -198,9 +186,3 @@ void TabContentsContainer::TabContentsDestroyed(WebContents* contents) {
|
| DCHECK(contents == web_contents_);
|
| ChangeWebContents(NULL);
|
| }
|
| -
|
| -void TabContentsContainer::RenderWidgetHostViewChanged(
|
| - RenderWidgetHostView* new_view) {
|
| - if (new_view)
|
| - new_view->set_reserved_contents_rect(cached_reserved_rect_);
|
| -}
|
|
|