Bug 1335191 - Stop using a textured window. r?spohl draft
authorMarkus Stange <mstange@themasta.com>
Fri, 23 Mar 2018 18:09:18 -0400
changeset 773208 efe862b3f884adc463989f9e27e1be3fdcd0d3ed
parent 773207 87eb80dbb6900a380962182b1ec73acdf3c8c48e
child 773209 88d208d0d268141c010533a2adfc8b1d8a7b0719
push id104177
push userbmo:mstange@themasta.com
push dateTue, 27 Mar 2018 17:16:49 +0000
reviewersspohl
bugs1335191
milestone61.0a1
Bug 1335191 - Stop using a textured window. r?spohl We no longer need the ability to specify a background color which gets drawn in the titlebar. This was the only reason why we were using a textured window. MozReview-Commit-ID: E8zizuvjjnA
widget/cocoa/nsCocoaWindow.mm
--- a/widget/cocoa/nsCocoaWindow.mm
+++ b/widget/cocoa/nsCocoaWindow.mm
@@ -3492,17 +3492,16 @@ static const NSString* kStateCollectionB
 // cover the titlebar completely and nothing that happens in the window
 // background will reach the screen.
 @implementation ToolbarWindow
 
 - (id)initWithContentRect:(NSRect)aContentRect styleMask:(NSUInteger)aStyle backing:(NSBackingStoreType)aBufferingType defer:(BOOL)aFlag
 {
   NS_OBJC_BEGIN_TRY_ABORT_BLOCK_NIL;
 
-  aStyle = aStyle | NSTexturedBackgroundWindowMask;
   if ((self = [super initWithContentRect:aContentRect styleMask:aStyle backing:aBufferingType defer:aFlag])) {
     mUnifiedToolbarHeight = 22.0f;
     mSheetAttachmentPosition = aContentRect.size.height;
     mWindowButtonsRect = NSZeroRect;
     mFullScreenButtonRect = NSZeroRect;
 
     // setBottomCornerRounded: is a private API call, so we check to make sure
     // we respond to it just in case.