Changeset 215468 in webkit


Ignore:
Timestamp:
Apr 18, 2017 10:14:58 AM (7 years ago)
Author:
timothy_horton@apple.com
Message:

Force scroll view insets to be respected regardless of rubber-banding state
https://bugs.webkit.org/show_bug.cgi?id=170937
<rdar://problem/31412788>

Reviewed by Simon Fraser.

  • Platform/spi/ios/UIKitSPI.h:
  • UIProcess/API/Cocoa/WKWebView.mm:

(-[WKWebView _initializeWithConfiguration:]):

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r215455 r215468  
     12017-04-18  Timothy Horton  <timothy_horton@apple.com>
     2
     3        Force scroll view insets to be respected regardless of rubber-banding state
     4        https://bugs.webkit.org/show_bug.cgi?id=170937
     5        <rdar://problem/31412788>
     6
     7        Reviewed by Simon Fraser.
     8
     9        * Platform/spi/ios/UIKitSPI.h:
     10        * UIProcess/API/Cocoa/WKWebView.mm:
     11        (-[WKWebView _initializeWithConfiguration:]):
     12
    1132017-04-18  Carlos Garcia Campos  <cgarcia@igalia.com>
    214
  • trunk/Source/WebKit2/Platform/spi/ios/UIKitSPI.h

    r214511 r215468  
    306306#endif
    307307
     308#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 110000
     309typedef NS_ENUM(NSInteger, UIScrollViewContentInsetAdjustmentBehavior) {
     310    UIScrollViewContentInsetAdjustmentAutomatic = 0,
     311    UIScrollViewContentInsetAdjustmentAlways = 3,
     312};
     313#endif
     314
    308315@interface UIScrollView ()
    309316- (void)_stopScrollingAndZoomingAnimations;
     
    318325#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 110000
    319326@property (nonatomic, readonly) UIEdgeInsets _systemContentInset;
     327@property (nonatomic, setter=_setContentInsetAdjustmentBehavior:, getter=_contentInsetAdjustmentBehavior) UIScrollViewContentInsetAdjustmentBehavior contentInsetAdjustmentBehavior;
    320328#endif
    321329@end
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm

    r215446 r215468  
    505505    [_scrollView setInternalDelegate:self];
    506506    [_scrollView setBouncesZoom:YES];
     507   
     508#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000
     509    if ([_scrollView _contentInsetAdjustmentBehavior] == UIScrollViewContentInsetAdjustmentAutomatic)
     510        [_scrollView _setContentInsetAdjustmentBehavior:UIScrollViewContentInsetAdjustmentAlways];
     511#endif
    507512
    508513    [self addSubview:_scrollView.get()];
Note: See TracChangeset for help on using the changeset viewer.