Title: [245267] trunk/Source/WebKit
Revision
245267
Author
wenson_hs...@apple.com
Date
2019-05-13 17:12:07 -0700 (Mon, 13 May 2019)

Log Message

Unreviewed, fix some deprecation warnings when using a recent SDK

* UIProcess/ios/WebDataListSuggestionsDropdownIOS.mm:
(-[WKDataListSuggestionsPicker initWithInformation:inView:]):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (245266 => 245267)


--- trunk/Source/WebKit/ChangeLog	2019-05-14 00:11:45 UTC (rev 245266)
+++ trunk/Source/WebKit/ChangeLog	2019-05-14 00:12:07 UTC (rev 245267)
@@ -1,3 +1,10 @@
+2019-05-13  Wenson Hsieh  <wenson_hs...@apple.com>
+
+        Unreviewed, fix some deprecation warnings when using a recent SDK
+
+        * UIProcess/ios/WebDataListSuggestionsDropdownIOS.mm:
+        (-[WKDataListSuggestionsPicker initWithInformation:inView:]):
+
 2019-05-13  Jiewen Tan  <jiewen_...@apple.com>
 
         [WebAuthN] InvalidStateError should be reported to sites

Modified: trunk/Source/WebKit/UIProcess/ios/WebDataListSuggestionsDropdownIOS.mm (245266 => 245267)


--- trunk/Source/WebKit/UIProcess/ios/WebDataListSuggestionsDropdownIOS.mm	2019-05-14 00:11:45 UTC (rev 245266)
+++ trunk/Source/WebKit/UIProcess/ios/WebDataListSuggestionsDropdownIOS.mm	2019-05-14 00:12:07 UTC (rev 245267)
@@ -211,7 +211,12 @@
     [_pickerView setDataSource:self];
     [_pickerView setDelegate:self];
     [_pickerView setControl:self];
-    [_pickerView setSize:[UIKeyboard defaultSizeForInterfaceOrientation:UIApp.interfaceOrientation]];
+#if HAVE(UISCENE)
+    auto interfaceOrientation = view.window.windowScene.interfaceOrientation;
+#else
+    auto interfaceOrientation = UIApp.interfaceOrientation;
+#endif
+    [_pickerView setSize:[UIKeyboard defaultSizeForInterfaceOrientation:interfaceOrientation]];
 
     return self;
 }
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to