# HG changeset patch
# User t_mrc-ct@users.sourceforge.jp
# Date 1401887707 -32400
# Branch GECKO2460_2014060612_RELBRANCH
# Node ID f4b2b12516e19084b7ded8fb91ad3307d08275a5
# Parent  93a8ff1b47eb0b1e0ba920bb7f8f2e5b8b19f511
patch for crash bug (Ticket #33948)

diff --git a/widget/cocoa/nsCocoaWindow.mm b/widget/cocoa/nsCocoaWindow.mm
--- a/widget/cocoa/nsCocoaWindow.mm
+++ b/widget/cocoa/nsCocoaWindow.mm
@@ -3254,17 +3254,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");
