[iOS] Some more -respondsToSelector: checks are unnecessary
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 12 Mar 2017 18:47:35 +0000 (18:47 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 12 Mar 2017 18:47:35 +0000 (18:47 +0000)
commite4d6174f58c8f13368243c1cd1d7377f28533a75
tree3fd0bcf5c7f3e7c9659aa9237e6afb80ed414ce1
parent3e0e759db1a4faaa38837ec27583bb5b337bae48
[iOS] Some more -respondsToSelector: checks are unnecessary
https://bugs.webkit.org/show_bug.cgi?id=169525

Reviewed by Tim Horton.

* Platform/spi/ios/UIKitSPI.h: Moved redeclarations of methods that are declared in the
  Apple internal SDK into the #if !USE(APPLE_INTERNAL_SDK) section.

* UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView _initializeWithConfiguration:]): Replaced unnecessary -respondsToSelector:
  check with compile-time check for the deployment target.
(-[WKWebView _computedContentInset]): Ditto.
(activeMinimumLayoutSize): Ditto.
(-[WKWebView safeAreaInsetsDidChange]): Ditto.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213771 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/Platform/spi/ios/UIKitSPI.h
Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm