| Index: chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.mm
|
| diff --git a/chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.mm b/chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.mm
|
| index d4a7f3f6b0d55f154fcd43b26c81da6894baabef..1622bb640b43770b3f0787e7d654f134c1c60321 100644
|
| --- a/chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.mm
|
| +++ b/chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.mm
|
| @@ -40,8 +40,10 @@ using content::WebContents;
|
| - (void)ensureContentsSizeDoesNotChange {
|
| NSView* contentsContainer = [self view];
|
| NSArray* subviews = [contentsContainer subviews];
|
| - if ([subviews count] > 0)
|
| - [contents_->GetNativeView() setAutoresizingMask:NSViewNotSizable];
|
| + if ([subviews count] > 0) {
|
| + [contents_->GetView()->GetNativeView()
|
| + setAutoresizingMask:NSViewNotSizable];
|
| + }
|
| }
|
|
|
| // Call when the tab view is properly sized and the render widget host view
|
| @@ -51,7 +53,7 @@ using content::WebContents;
|
| return;
|
| NSView* contentsContainer = [self view];
|
| NSArray* subviews = [contentsContainer subviews];
|
| - NSView* contentsNativeView = contents_->GetNativeView();
|
| + NSView* contentsNativeView = contents_->GetView()->GetNativeView();
|
| [contentsNativeView setFrame:[contentsContainer frame]];
|
| if ([subviews count] == 0) {
|
| [contentsContainer addSubview:contentsNativeView];
|
|
|