Build fix, remove a call to -[NSWindow setOneShot:]
authorap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 19 Jan 2018 00:43:56 +0000 (00:43 +0000)
committerap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 19 Jan 2018 00:43:56 +0000 (00:43 +0000)
https://bugs.webkit.org/show_bug.cgi?id=181809

Reviewed by Tim Horton.

* WebView/WebTextCompletionController.mm:
(-[WebTextCompletionController _buildUI]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@227172 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKitLegacy/mac/ChangeLog
Source/WebKitLegacy/mac/WebView/WebTextCompletionController.mm

index ad273fc..9135931 100644 (file)
@@ -1,3 +1,13 @@
+2018-01-18  Alexey Proskuryakov  <ap@apple.com>
+
+        Build fix, remove a call to -[NSWindow setOneShot:]
+        https://bugs.webkit.org/show_bug.cgi?id=181809
+
+        Reviewed by Tim Horton.
+
+        * WebView/WebTextCompletionController.mm:
+        (-[WebTextCompletionController _buildUI]):
+
 2018-01-18  Ryan Haddad  <ryanhaddad@apple.com>
 
         Unreviewed, suppress deprecation warnings to fix the build with a newer SDK.
index fd4eff9..c6f0e73 100644 (file)
@@ -117,7 +117,9 @@ using namespace WebCore;
     [_popupWindow setContentView:scrollView];
     [scrollView release];
     [_popupWindow setHasShadow:YES];
+#if __MAC_OS_X_VERSION_MIN_REQUIRED < 101400
     [_popupWindow setOneShot:YES];
+#endif
     [_popupWindow _setForceActiveControls:YES];
     [_popupWindow setReleasedWhenClosed:NO];
 }