Changeset 248459 in webkit
- Timestamp:
- Aug 8, 2019, 10:01:24 PM (7 years ago)
- Location:
- branches/safari-608.1-branch/Source/WebKit
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
Platform/spi/ios/UIKitSPI.h (modified) (2 diffs)
-
UIProcess/ios/WKContentViewInteraction.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-608.1-branch/Source/WebKit/ChangeLog
r248458 r248459 1 2019-08-08 Kocsen Chung <kocsen_chung@apple.com> 2 3 Cherry-pick r248455. rdar://problem/54109873 4 5 [iOS WK2] Hide previews when an inner overflow or frame scrollview scrolls 6 https://bugs.webkit.org/show_bug.cgi?id=200552 7 rdar://problem/54086338 8 9 Reviewed by Wenson Hsieh. 10 11 Give UITargetedPreview the UIScrollView that the target element is inside of, 12 so it can clean up if the user starts to scroll that view. 13 14 * Platform/spi/ios/UIKitSPI.h: 15 * UIProcess/ios/WKContentViewInteraction.mm: 16 (-[WKContentView _createTargetedPreviewIfPossible]): 17 18 19 git-svn-id: https://svn.webkit.org/repository/webkit/trunk@248455 268f45cc-cd09-0410-ab3c-d52691b4dbfc 20 21 2019-08-08 Simon Fraser <simon.fraser@apple.com> 22 23 [iOS WK2] Hide previews when an inner overflow or frame scrollview scrolls 24 https://bugs.webkit.org/show_bug.cgi?id=200552 25 rdar://problem/54086338 26 27 Reviewed by Wenson Hsieh. 28 29 Give UITargetedPreview the UIScrollView that the target element is inside of, 30 so it can clean up if the user starts to scroll that view. 31 32 * Platform/spi/ios/UIKitSPI.h: 33 * UIProcess/ios/WKContentViewInteraction.mm: 34 (-[WKContentView _createTargetedPreviewIfPossible]): 35 1 36 2019-08-08 Kocsen Chung <kocsen_chung@apple.com> 2 37 -
branches/safari-608.1-branch/Source/WebKit/Platform/spi/ios/UIKitSPI.h
r247618 r248459 113 113 #endif 114 114 115 #if __has_include(<UIKit/UITargetedPreview_Private.h>) 116 #import <UIKit/UITargetedPreview_Private.h> 117 #endif 118 115 119 #else // USE(APPLE_INTERNAL_SDK) 116 120 … … 1155 1159 #endif 1156 1160 1161 #if USE(UICONTEXTMENU) 1162 @interface UITargetedPreview (Radar54086338) 1163 @property (nonatomic, strong, setter=_setOverridePositionTrackingView:) UIView *overridePositionTrackingView; 1164 @end 1165 #endif // USE(UICONTEXTMENU) 1166 1157 1167 @interface UIResponder () 1158 1168 - (UIResponder *)firstResponder; -
branches/safari-608.1-branch/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
r248429 r248459 8153 8153 targetedPreview = createFallbackTargetedPreview(self, self.containerViewForTargetedPreviews, _positionInformation.bounds); 8154 8154 8155 if (_positionInformation.containerScrollingNodeID) { 8156 UIScrollView *positionTrackingView = _webView.scrollView; 8157 if (auto* scrollingCoordinator = _page->scrollingCoordinatorProxy()) 8158 positionTrackingView = scrollingCoordinator->scrollViewForScrollingNodeID(_positionInformation.containerScrollingNodeID); 8159 8160 if ([targetedPreview respondsToSelector:@selector(_setOverridePositionTrackingView:)]) 8161 [targetedPreview _setOverridePositionTrackingView:positionTrackingView]; 8162 } 8163 8155 8164 _contextMenuInteractionTargetedPreview = WTFMove(targetedPreview); 8156 8165 return _contextMenuInteractionTargetedPreview.get();
Note:
See TracChangeset
for help on using the changeset viewer.