Changeset 215468 in webkit
- Timestamp:
- Apr 18, 2017 10:14:58 AM (7 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r215455 r215468 1 2017-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 1 13 2017-04-18 Carlos Garcia Campos <cgarcia@igalia.com> 2 14 -
trunk/Source/WebKit2/Platform/spi/ios/UIKitSPI.h
r214511 r215468 306 306 #endif 307 307 308 #if __IPHONE_OS_VERSION_MAX_ALLOWED >= 110000 309 typedef NS_ENUM(NSInteger, UIScrollViewContentInsetAdjustmentBehavior) { 310 UIScrollViewContentInsetAdjustmentAutomatic = 0, 311 UIScrollViewContentInsetAdjustmentAlways = 3, 312 }; 313 #endif 314 308 315 @interface UIScrollView () 309 316 - (void)_stopScrollingAndZoomingAnimations; … … 318 325 #if __IPHONE_OS_VERSION_MAX_ALLOWED >= 110000 319 326 @property (nonatomic, readonly) UIEdgeInsets _systemContentInset; 327 @property (nonatomic, setter=_setContentInsetAdjustmentBehavior:, getter=_contentInsetAdjustmentBehavior) UIScrollViewContentInsetAdjustmentBehavior contentInsetAdjustmentBehavior; 320 328 #endif 321 329 @end -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm
r215446 r215468 505 505 [_scrollView setInternalDelegate:self]; 506 506 [_scrollView setBouncesZoom:YES]; 507 508 #if __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000 509 if ([_scrollView _contentInsetAdjustmentBehavior] == UIScrollViewContentInsetAdjustmentAutomatic) 510 [_scrollView _setContentInsetAdjustmentBehavior:UIScrollViewContentInsetAdjustmentAlways]; 511 #endif 507 512 508 513 [self addSubview:_scrollView.get()];
Note: See TracChangeset
for help on using the changeset viewer.