Stop overriding scroll view inset defaults
authortimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 29 Mar 2017 01:14:49 +0000 (01:14 +0000)
committertimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 29 Mar 2017 01:14:49 +0000 (01:14 +0000)
https://bugs.webkit.org/show_bug.cgi?id=170221
<rdar://problem/31260325>

Reviewed by Simon Fraser.

* Platform/spi/ios/UIKitSPI.h:
* UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView _initializeWithConfiguration:]):
The default behavior is sufficient for us.

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

Source/WebKit2/ChangeLog
Source/WebKit2/Platform/spi/ios/UIKitSPI.h
Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm

index 7a9899e..a297351 100644 (file)
@@ -1,5 +1,18 @@
 2017-03-28  Timothy Horton  <timothy_horton@apple.com>
 
+        Stop overriding scroll view inset defaults
+        https://bugs.webkit.org/show_bug.cgi?id=170221
+        <rdar://problem/31260325>
+
+        Reviewed by Simon Fraser.
+
+        * Platform/spi/ios/UIKitSPI.h:
+        * UIProcess/API/Cocoa/WKWebView.mm:
+        (-[WKWebView _initializeWithConfiguration:]):
+        The default behavior is sufficient for us.
+
+2017-03-28  Timothy Horton  <timothy_horton@apple.com>
+
         Safari crashes when attempting to close tab that is displaying PDF
         https://bugs.webkit.org/show_bug.cgi?id=170201
         <rdar://problem/31242019>
index 6bbb6d0..6bcb066 100644 (file)
@@ -316,7 +316,6 @@ typedef enum {
 @property (nonatomic) CGFloat verticalScrollDecelerationFactor;
 @property (nonatomic, readonly) BOOL _isInterruptingDeceleration;
 #if __IPHONE_OS_VERSION_MAX_ALLOWED >= 110000
-@property (nonatomic, setter=_setEdgesScrollingContentIntoSafeArea:) UIRectEdge _edgesScrollingContentIntoSafeArea;
 @property (nonatomic, readonly) UIEdgeInsets _systemContentInset;
 #endif
 @end
index 144891a..15ca39d 100644 (file)
@@ -509,10 +509,6 @@ static uint32_t convertSystemLayoutDirection(NSUserInterfaceLayoutDirection dire
     [_scrollView setInternalDelegate:self];
     [_scrollView setBouncesZoom:YES];
 
-#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000
-    [_scrollView _setEdgesScrollingContentIntoSafeArea:UIRectEdgeAll];
-#endif
-
     [self addSubview:_scrollView.get()];
 
     static uint32_t programSDKVersion = dyld_get_program_sdk_version();