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

Unified Diff: webkit/tools/test_shell/webwidget_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: . 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
Index: webkit/tools/test_shell/webwidget_host_mac.mm
diff --git a/webkit/tools/test_shell/webwidget_host_mac.mm b/webkit/tools/test_shell/webwidget_host_mac.mm
index fc424443553d6d5156efb1fc5fe38d3964da1589..60a10f531531ea12813c2dd0e669907ca0143b1d 100644
--- a/webkit/tools/test_shell/webwidget_host_mac.mm
+++ b/webkit/tools/test_shell/webwidget_host_mac.mm
@@ -44,8 +44,8 @@ WebWidgetHost* WebWidgetHost::Create(NSView* parent_view,
// ui::SetWindowUserData(host->hwnd_, host);
host->webwidget_ = WebPopupMenu::create(client);
- host->webwidget_->resize(WebSize(content_rect.size.width,
- content_rect.size.height));
+ host->webwidget_->resize(WebSize(NSWidth(content_rect),
+ NSHeight(content_rect)));
return host;
}

Powered by Google App Engine
This is Rietveld 408576698