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

Unified Diff: ui/base/cocoa/underlay_opengl_hosting_window.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/base/cocoa/base_view_unittest.mm ('k') | ui/gfx/platform_font_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/cocoa/underlay_opengl_hosting_window.mm
diff --git a/ui/base/cocoa/underlay_opengl_hosting_window.mm b/ui/base/cocoa/underlay_opengl_hosting_window.mm
index 04b5eda2564ac1c20ecaab760a1ebdf97e6741f5..4ef7092144e253e9d6ebb18776768d1c31c34d7a 100644
--- a/ui/base/cocoa/underlay_opengl_hosting_window.mm
+++ b/ui/base/cocoa/underlay_opengl_hosting_window.mm
@@ -99,8 +99,7 @@ void RootDidAddSubview(id self, SEL _cmd, NSView* subview) {
//
// (This is checked here because UnderlayOpenGLHostingWindow is the base of
// most Chromium windows, not because this is related to its functionality.)
- DCHECK(contentRect.size.width > 0 &&
- contentRect.size.height > 0);
+ DCHECK(!NSIsEmptyRect(contentRect));
if ((self = [super initWithContentRect:contentRect
styleMask:windowStyle
backing:bufferingType
« no previous file with comments | « ui/base/cocoa/base_view_unittest.mm ('k') | ui/gfx/platform_font_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698