# HG changeset patch
# User t_mrc-ct@users.sourceforge.jp
# Date 1401887707 -32400
# Branch GECKO2450_2014042411_RELBRANCH
# Node ID bb7f13051b7cd8bc6f98525cb0c2caa61d18cc80
# Parent  c251539c15fbe17de32d98e5087be93abdbe824d
patch for crash bug (tenfourbird/forums/28579/35080/)

diff --git a/widget/cocoa/nsCocoaWindow.mm b/widget/cocoa/nsCocoaWindow.mm
--- a/widget/cocoa/nsCocoaWindow.mm
+++ b/widget/cocoa/nsCocoaWindow.mm
@@ -3284,17 +3284,17 @@
   // Gecko drawing assumes flippedness, but the current context isn't flipped
   // (because we're painting into the window's border view, which is not a
   // ChildView, so it isn't flpped).
   // So we need to set a flip transform.
   CGContextScaleCTM(aContext, 1.0f, -1.0f);
   CGContextTranslateCTM(aContext, 0.0f, -[window frame].size.height);
 
   NSRect titlebarRect = NSMakeRect(0, 0, [window frame].size.width, [window titlebarHeight]);
-  [(ChildView*)view drawRect:titlebarRect inTitlebarContext:aContext];
+  [(ChildView*)view drawRect:titlebarRect inContext:aContext];
 }
 // end
 
 static void
 DrawNativeTitlebar(CGContextRef aContext, CGRect aTitlebarRect,
                    CGFloat aUnifiedToolbarHeight, BOOL aIsMain)
 {
 NS_NOTREACHED("never call DrawNativeTitlebar");
