Changeset 245267 in webkit


Ignore:
Timestamp:
May 13, 2019 5:12:07 PM (5 years ago)
Author:
Wenson Hsieh
Message:

Unreviewed, fix some deprecation warnings when using a recent SDK

  • UIProcess/ios/WebDataListSuggestionsDropdownIOS.mm:

(-[WKDataListSuggestionsPicker initWithInformation:inView:]):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r245262 r245267  
     12019-05-13  Wenson Hsieh  <wenson_hsieh@apple.com>
     2
     3        Unreviewed, fix some deprecation warnings when using a recent SDK
     4
     5        * UIProcess/ios/WebDataListSuggestionsDropdownIOS.mm:
     6        (-[WKDataListSuggestionsPicker initWithInformation:inView:]):
     7
    182019-05-13  Jiewen Tan  <jiewen_tan@apple.com>
    29
  • trunk/Source/WebKit/UIProcess/ios/WebDataListSuggestionsDropdownIOS.mm

    r239454 r245267  
    212212    [_pickerView setDelegate:self];
    213213    [_pickerView setControl:self];
    214     [_pickerView setSize:[UIKeyboard defaultSizeForInterfaceOrientation:UIApp.interfaceOrientation]];
     214#if HAVE(UISCENE)
     215    auto interfaceOrientation = view.window.windowScene.interfaceOrientation;
     216#else
     217    auto interfaceOrientation = UIApp.interfaceOrientation;
     218#endif
     219    [_pickerView setSize:[UIKeyboard defaultSizeForInterfaceOrientation:interfaceOrientation]];
    215220
    216221    return self;
Note: See TracChangeset for help on using the changeset viewer.