Bug 1398582: Followup to fix the selector checks in changeset e4ac2e4268c7. r=mstange
authorStephen A Pohl <spohl.mozilla.bugs@gmail.com>
Wed, 20 Sep 2017 09:26:50 -0400
changeset 431429 b3637dfc01ba79a37c2e3a0c4b65eacd1bb0fa56
parent 431428 4193c11e97aeab5a258d5499bf4a4d9177b27380
child 431430 938750d859b85600b84013bd6dea63db1c32d135
push id7784
push userryanvm@gmail.com
push dateThu, 21 Sep 2017 00:40:13 +0000
treeherdermozilla-beta@efff4f307675 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmstange
bugs1398582
milestone57.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1398582: Followup to fix the selector checks in changeset e4ac2e4268c7. r=mstange
widget/cocoa/nsCocoaWindow.mm
--- a/widget/cocoa/nsCocoaWindow.mm
+++ b/widget/cocoa/nsCocoaWindow.mm
@@ -482,17 +482,17 @@ nsresult nsCocoaWindow::CreateNativeWind
   // BorderlessWindow class.
   else if (features == NSBorderlessWindowMask)
     windowClass = [BorderlessWindow class];
 
   // Create the window
   mWindow = [[windowClass alloc] initWithContentRect:contentRect styleMask:features 
                                  backing:NSBackingStoreBuffered defer:YES];
 
-  if ([mWindow respondsToSelector:@selector(setTitleVisibility)]) {
+  if ([mWindow respondsToSelector:@selector(setTitleVisibility:)]) {
     // By default, hide window titles.
     [mWindow setTitleVisibility:NSWindowTitleHidden];
   }
   if ([mWindow respondsToSelector:@selector(setTitlebarAppearsTransparent)]) {
     // By default, hide window titlebars.
     [mWindow setTitlebarAppearsTransparent:YES];
   }
 
@@ -3153,17 +3153,17 @@ static const NSString* kStateCollectionB
 
 - (void)setDrawsContentsIntoWindowFrame:(BOOL)aState
 {
   bool changed = (aState != mDrawsIntoWindowFrame);
   mDrawsIntoWindowFrame = aState;
   if (changed) {
     [self updateContentViewSize];
     [self reflowTitlebarElements];
-    if ([self respondsToSelector:@selector(setTitleVisibility)]) {
+    if ([self respondsToSelector:@selector(setTitleVisibility:)]) {
       [self setTitleVisibility:mDrawsIntoWindowFrame ? NSWindowTitleHidden :
                                                        NSWindowTitleVisible];
     }
     if ([self respondsToSelector:@selector(setTitlebarAppearsTransparent)]) {
       [self setTitlebarAppearsTransparent:mDrawsIntoWindowFrame];
     }
   }
 }