Changeset 250365 in webkit
- Timestamp:
- Sep 25, 2019 3:54:16 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r250362 r250365 1 2019-09-25 Megan Gardner <megan_gardner@apple.com> 2 3 Update selections after scrolling for iframes and hide selections while iframes and overflow scrolls are scrolling. 4 https://bugs.webkit.org/show_bug.cgi?id=202125 5 6 Reviewed by Tim Horton. 7 8 Test that an iframe selection is updated after a scroll is completed. 9 10 * editing/selection/ios/update-selection-after-iframe-scroll-expected.txt: Added. 11 * editing/selection/ios/update-selection-after-iframe-scroll.html: Added. 12 1 13 2019-09-25 Alicia Boya García <aboya@igalia.com> 2 14 -
trunk/Source/WebCore/ChangeLog
r250361 r250365 1 2019-09-25 Megan Gardner <megan_gardner@apple.com> 2 3 Update selections after scrolling for iframes and hide selections while iframes and overflow scrolls are scrolling. 4 https://bugs.webkit.org/show_bug.cgi?id=202125 5 6 Reviewed by Tim Horton. 7 8 Test: editing/selection/ios/update-selection-after-iframe-scroll.html 9 10 When we end scrolling, make sure that iframes get a final update to ensure that the 11 selection is in the correct position. Pipe that to WebKit/UIProcess via 12 frame specific plath. 13 14 * loader/EmptyClients.cpp: 15 * page/EditorClient.h: 16 * page/scrolling/AsyncScrollingCoordinator.cpp: 17 (WebCore::AsyncScrollingCoordinator::updateScrollPositionAfterAsyncScroll): 18 1 19 2019-09-25 Wenson Hsieh <wenson_hsieh@apple.com> 2 20 -
trunk/Source/WebCore/loader/EmptyClients.cpp
r250043 r250365 217 217 void textDidChangeInTextArea(Element*) final { } 218 218 void overflowScrollPositionChanged() final { } 219 void subFrameScrollPositionChanged() final { } 219 220 220 221 #if PLATFORM(IOS_FAMILY) -
trunk/Source/WebCore/page/EditorClient.h
r248974 r250365 130 130 virtual void textDidChangeInTextArea(Element*) = 0; 131 131 virtual void overflowScrollPositionChanged() = 0; 132 virtual void subFrameScrollPositionChanged() = 0; 132 133 133 134 #if PLATFORM(IOS_FAMILY) -
trunk/Source/WebCore/page/scrolling/AsyncScrollingCoordinator.cpp
r248846 r250365 343 343 344 344 auto& frameView = *frameViewPtr; 345 346 if (!frameViewPtr->frame().isMainFrame()) { 347 if (scrollingLayerPositionAction == ScrollingLayerPositionAction::Set) 348 m_page->editorClient().subFrameScrollPositionChanged(); 349 } 345 350 346 351 if (scrollingNodeID == frameView.scrollingNodeID()) { -
trunk/Source/WebKit/ChangeLog
r250361 r250365 1 2019-09-25 Megan Gardner <megan_gardner@apple.com> 2 3 Update selections after scrolling for iframes and hide selections while iframes and overflow scrolls are scrolling. 4 https://bugs.webkit.org/show_bug.cgi?id=202125 5 6 Reviewed by Tim Horton. 7 8 Add additional calls into UIKit differentiate between main frame scrolling and overflow/iframe scrolling. 9 Add piping for iframe specific scrolling. 10 11 * Platform/spi/ios/UIKitSPI.h: 12 * UIProcess/ios/WKContentViewInteraction.mm: 13 (-[WKContentView _willStartScrollingOrZooming]): 14 (-[WKContentView _didEndScrollingOrZooming]): 15 * WebProcess/WebCoreSupport/WebEditorClient.cpp: 16 (WebKit::WebEditorClient::subFrameScrollPositionChanged): 17 * WebProcess/WebCoreSupport/WebEditorClient.h: 18 * WebProcess/WebCoreSupport/ios/WebEditorClientIOS.mm: 19 (WebKit::WebEditorClient::subFrameScrollPositionChanged): 20 1 21 2019-09-25 Wenson Hsieh <wenson_hsieh@apple.com> 2 22 -
trunk/Source/WebKit/Platform/spi/ios/UIKitSPI.h
r249006 r250365 1089 1089 #endif // USE(APPLE_INTERNAL_SDK) 1090 1090 1091 @interface UITextInteractionAssistant (Staging_55645619) 1092 - (void)didEndScrollingOrZooming; 1093 - (void)willStartScrollingOrZooming; 1094 @end 1095 1091 1096 @interface UIGestureRecognizer (Staging_45970040) 1092 1097 @property (nonatomic, readonly, getter=_modifierFlags) UIKeyModifierFlags modifierFlags; -
trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
r250345 r250365 2716 2716 - (void)_willStartScrollingOrZooming 2717 2717 { 2718 [_textSelectionAssistant willStartScrollingOverflow]; 2718 if ([_textSelectionAssistant respondsToSelector:@selector(willStartScrollingOrZooming)]) 2719 [_textSelectionAssistant willStartScrollingOrZooming]; 2720 else 2721 [_textSelectionAssistant willStartScrollingOverflow]; 2719 2722 _page->setIsScrollingOrZooming(true); 2720 2723 … … 2736 2739 { 2737 2740 if (!_needsDeferredEndScrollingSelectionUpdate) { 2738 [_textSelectionAssistant didEndScrollingOverflow]; 2741 if ([_textSelectionAssistant respondsToSelector:@selector(didEndScrollingOrZooming)]) 2742 [_textSelectionAssistant didEndScrollingOrZooming]; 2743 else 2744 [_textSelectionAssistant didEndScrollingOverflow]; 2739 2745 } 2740 2746 _page->setIsScrollingOrZooming(false); -
trunk/Source/WebKit/WebProcess/WebCoreSupport/WebEditorClient.cpp
r245796 r250365 425 425 notImplemented(); 426 426 } 427 428 void WebEditorClient::subFrameScrollPositionChanged() 429 { 430 notImplemented(); 431 } 427 432 #endif 428 433 -
trunk/Source/WebKit/WebProcess/WebCoreSupport/WebEditorClient.h
r248974 r250365 114 114 void textDidChangeInTextArea(WebCore::Element*) final; 115 115 void overflowScrollPositionChanged() final; 116 void subFrameScrollPositionChanged() final; 116 117 117 118 #if PLATFORM(COCOA) -
trunk/Source/WebKit/WebProcess/WebCoreSupport/ios/WebEditorClientIOS.mm
r248974 r250365 103 103 } 104 104 105 void WebEditorClient::subFrameScrollPositionChanged() 106 { 107 m_page->didChangeOverflowScrollPosition(); 108 } 109 105 110 bool WebEditorClient::shouldAllowSingleClickToChangeSelection(WebCore::Node& targetNode, const WebCore::VisibleSelection& newSelection) const 106 111 { -
trunk/Source/WebKitLegacy/mac/ChangeLog
r250333 r250365 1 2019-09-25 Megan Gardner <megan_gardner@apple.com> 2 3 Update selections after scrolling for iframes and hide selections while iframes and overflow scrolls are scrolling. 4 https://bugs.webkit.org/show_bug.cgi?id=202125 5 6 Reviewed by Tim Horton. 7 8 Filling out unused functions needed for new fix. 9 10 * WebCoreSupport/WebEditorClient.h: 11 1 12 2019-09-24 Alex Christensen <achristensen@webkit.org> 2 13 -
trunk/Source/WebKitLegacy/mac/WebCoreSupport/WebEditorClient.h
r248974 r250365 139 139 void textDidChangeInTextArea(WebCore::Element*) final; 140 140 void overflowScrollPositionChanged() final { }; 141 void subFrameScrollPositionChanged() final { }; 141 142 142 143 #if PLATFORM(IOS_FAMILY)
Note: See TracChangeset
for help on using the changeset viewer.