diff options
-rw-r--r-- | webkit/tools/test_shell/mac/webview_host.mm | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/webkit/tools/test_shell/mac/webview_host.mm b/webkit/tools/test_shell/mac/webview_host.mm index 7c6c949..13f8332 100644 --- a/webkit/tools/test_shell/mac/webview_host.mm +++ b/webkit/tools/test_shell/mac/webview_host.mm @@ -10,9 +10,12 @@ #include "base/gfx/platform_canvas.h" #include "base/gfx/rect.h" #include "base/gfx/size.h" +#include "third_party/WebKit/WebKit/chromium/public/WebSize.h" #include "webkit/glue/webview.h" -/*static*/ +using WebKit::WebSize; + +// static WebViewHost* WebViewHost::Create(NSView* parent_view, WebViewDelegate* delegate, const WebPreferences& prefs) { @@ -31,8 +34,8 @@ WebViewHost* WebViewHost::Create(NSView* parent_view, [host->view_ release]; host->webwidget_ = WebView::Create(delegate, prefs); - host->webwidget_->Resize(gfx::Size(content_rect.size.width, - content_rect.size.height)); + host->webwidget_->Resize(WebSize(content_rect.size.width, + content_rect.size.height)); return host; } |