diff options
Diffstat (limited to 'chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.mm')
-rw-r--r-- | chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.mm | 8 |
1 files changed, 5 insertions, 3 deletions
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 d4a7f3f..1622bb6 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]; |