Changeset 242690 in webkit
- Timestamp:
- Mar 10, 2019, 4:49:10 PM (7 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
UIProcess/ios/WKContentViewInteraction.mm (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r242687 r242690 1 2019-03-10 Wenson Hsieh <wenson_hsieh@apple.com> 2 3 Fix some misleading function and variable names in WKContentViewInteraction.mm 4 https://bugs.webkit.org/show_bug.cgi?id=195536 5 6 Reviewed by Tim Horton. 7 8 * UIProcess/ios/WKContentViewInteraction.mm: 9 (shouldDeferZoomingToSelectionWhenRevealingFocusedElement): 10 11 Rename shouldZoomToRevealSelectionRect to shouldDeferZoomingToSelectionWhenRevealingFocusedElement; this 12 function is used to determine whether we should zoom to the selection rect when revealing the focused element, 13 and therefore affects whether we need to defer zooming until we get selection information. 14 15 (rectToRevealWhenZoomingToFocusedElement): 16 (-[WKContentView _elementDidFocus:userIsInteracting:blurPreviousNode:changingActivityState:userObject:]): 17 18 Rename shouldShowKeyboard to shouldShowInputView; this boolean indicates whether we should show not only the 19 keyboard, but other UI for user input such as date and select pickers. 20 21 (-[WKContentView _didReceiveEditorStateUpdateAfterFocus]): 22 (shouldZoomToRevealSelectionRect): Deleted. 23 1 24 2019-03-10 Simon Fraser <simon.fraser@apple.com> 2 25 -
trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
r242551 r242690 4724 4724 } 4725 4725 4726 static bool should ZoomToRevealSelectionRect(WebKit::InputType type)4726 static bool shouldDeferZoomingToSelectionWhenRevealingFocusedElement(WebKit::InputType type) 4727 4727 { 4728 4728 switch (type) { … … 4749 4749 elementInteractionRect = { elementInfo.lastInteractionLocation, { 1, 1 } }; 4750 4750 4751 if (!should ZoomToRevealSelectionRect(elementInfo.elementType))4751 if (!shouldDeferZoomingToSelectionWhenRevealingFocusedElement(elementInfo.elementType)) 4752 4752 return elementInteractionRect; 4753 4753 … … 4841 4841 [self _stopSuppressingSelectionAssistantForReason:WebKit::FocusedElementIsTooSmall]; 4842 4842 4843 BOOL shouldShow Keyboard= [&] {4843 BOOL shouldShowInputView = [&] { 4844 4844 switch (startInputSessionPolicy) { 4845 4845 case _WKFocusStartsInputSessionPolicyAuto: … … 4888 4888 #endif 4889 4889 4890 if (!shouldShow Keyboard)4890 if (!shouldShowInputView) 4891 4891 return; 4892 4892 … … 4952 4952 [_webView _scheduleVisibleContentRectUpdate]; 4953 4953 4954 if (!should ZoomToRevealSelectionRect(_focusedElementInformation.elementType))4954 if (!shouldDeferZoomingToSelectionWhenRevealingFocusedElement(_focusedElementInformation.elementType)) 4955 4955 [self _zoomToRevealFocusedElement]; 4956 4956 … … 5107 5107 // FIXME: If the initial writing direction just changed, we should wait until we get the next post-layout editor state 5108 5108 // before zooming to reveal the selection rect. 5109 if (should ZoomToRevealSelectionRect(_focusedElementInformation.elementType))5109 if (shouldDeferZoomingToSelectionWhenRevealingFocusedElement(_focusedElementInformation.elementType)) 5110 5110 [self _zoomToRevealFocusedElement]; 5111 5111 }
Note:
See TracChangeset
for help on using the changeset viewer.