Index: content/shell/shell_gtk.cc |
diff --git a/content/shell/shell_gtk.cc b/content/shell/shell_gtk.cc |
index de41e668e797800998a314e6d1db6bcd24feb277..8d024ce45e9a3414829cf0b8099a9624646ba704 100644 |
--- a/content/shell/shell_gtk.cc |
+++ b/content/shell/shell_gtk.cc |
@@ -209,8 +209,10 @@ void Shell::PlatformSetContents() { |
void Shell::SizeTo(int width, int height) { |
content_width_ = width; |
content_height_ = height; |
- if (web_contents_.get()) |
- gtk_widget_set_size_request(web_contents_->GetNativeView(), width, height); |
+ if (web_contents_.get()) { |
+ gtk_widget_set_size_request(web_contents_->GetView()->GetNativeView(), |
+ width, height); |
+ } |
} |
void Shell::PlatformResizeSubViews() { |