Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Unified Diff: webkit/tools/test_shell/webview_host_mac.mm

Issue 10545050: mac: Use NSWidth() and friends in a few more places. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/platform_font_mac.mm ('k') | webkit/tools/test_shell/webwidget_host_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/webview_host_mac.mm
diff --git a/webkit/tools/test_shell/webview_host_mac.mm b/webkit/tools/test_shell/webview_host_mac.mm
index 584a6313fd934b3facf2a2a944d02e436dcb59a8..98ce43f0afbf8d827c48f272f5fe5c424d467999 100644
--- a/webkit/tools/test_shell/webview_host_mac.mm
+++ b/webkit/tools/test_shell/webview_host_mac.mm
@@ -43,8 +43,8 @@ WebViewHost* WebViewHost::Create(NSView* parent_view,
host->webview()->setDevToolsAgentClient(dev_tools_client);
prefs.Apply(host->webview());
host->webview()->initializeMainFrame(delegate);
- host->webwidget_->resize(WebSize(content_rect.size.width,
- content_rect.size.height));
+ host->webwidget_->resize(WebSize(NSWidth(content_rect),
+ NSHeight(content_rect)));
return host;
}
« no previous file with comments | « ui/gfx/platform_font_mac.mm ('k') | webkit/tools/test_shell/webwidget_host_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698