Changeset 284843 in webkit
- Timestamp:
- Oct 25, 2021, 4:10:41 PM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
UIProcess/ios/WKContentViewInteraction.mm (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r284823 r284843 1 2021-10-25 Wenson Hsieh <wenson_hsieh@apple.com> 2 3 Rename a few variable and parameter names in WKContentViewInteraction.mm 4 https://bugs.webkit.org/show_bug.cgi?id=232275 5 6 Reviewed by Tim Horton. 7 8 The `ProceedWithTextSelectionInImage` enum flag was being stored in a variable named 9 `ProceedWithTextSelectionInImage` in a few places, likely due to mass renaming when upstreaming WebKit support 10 for Live Text. Rename this so that we use lowercase for these variable names. 11 12 No change in behavior. 13 14 * UIProcess/ios/WKContentViewInteraction.mm: 15 (-[WKContentView _dragInteraction:prepareForSession:completion:]): 16 (-[WKContentView _doAfterPendingImageAnalysis:]): 17 (-[WKContentView _invokeAllActionsToPerformAfterPendingImageAnalysis:]): 18 (-[WKContentView _contextMenuInteraction:configurationForMenuAtLocation:completion:]): 19 1 20 2021-10-25 Alex Christensen <achristensen@webkit.org> 2 21 -
trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
r284766 r284843 8861 8861 [self cleanUpDragSourceSessionState]; 8862 8862 8863 auto prepareForSession = [weakSelf = WeakObjCPtr<WKContentView>(self), session = retainPtr(session), completion = makeBlockPtr(completion)] (WebKit::ProceedWithTextSelectionInImage ProceedWithTextSelectionInImage) {8863 auto prepareForSession = [weakSelf = WeakObjCPtr<WKContentView>(self), session = retainPtr(session), completion = makeBlockPtr(completion)] (WebKit::ProceedWithTextSelectionInImage proceedWithTextSelectionInImage) { 8864 8864 auto strongSelf = weakSelf.get(); 8865 if (!strongSelf || ProceedWithTextSelectionInImage == WebKit::ProceedWithTextSelectionInImage::Yes)8865 if (!strongSelf || proceedWithTextSelectionInImage == WebKit::ProceedWithTextSelectionInImage::Yes) 8866 8866 return; 8867 8867 … … 9822 9822 } 9823 9823 9824 - (void)_doAfterPendingImageAnalysis:(void(^)(WebKit::ProceedWithTextSelectionInImage ProceedWithTextSelectionInImage))block9824 - (void)_doAfterPendingImageAnalysis:(void(^)(WebKit::ProceedWithTextSelectionInImage))block 9825 9825 { 9826 9826 if (self.hasPendingImageAnalysisRequest) … … 9830 9830 } 9831 9831 9832 - (void)_invokeAllActionsToPerformAfterPendingImageAnalysis:(WebKit::ProceedWithTextSelectionInImage) ProceedWithTextSelectionInImage9832 - (void)_invokeAllActionsToPerformAfterPendingImageAnalysis:(WebKit::ProceedWithTextSelectionInImage)proceedWithTextSelectionInImage 9833 9833 { 9834 9834 _pendingImageAnalysisRequestIdentifier = std::nullopt; 9835 9835 _elementPendingImageAnalysis = std::nullopt; 9836 9836 for (auto block : std::exchange(_actionsToPerformAfterPendingImageAnalysis, { })) 9837 block( ProceedWithTextSelectionInImage);9837 block(proceedWithTextSelectionInImage); 9838 9838 } 9839 9839 … … 10861 10861 return completion(nil); 10862 10862 10863 auto getConfigurationAndContinue = [weakSelf = WeakObjCPtr<WKContentView>(self), interaction = retainPtr(interaction), completion = makeBlockPtr(completion), triggeredByImageAnalysisTimeout] (WebKit::ProceedWithTextSelectionInImage ProceedWithTextSelectionInImage) {10863 auto getConfigurationAndContinue = [weakSelf = WeakObjCPtr<WKContentView>(self), interaction = retainPtr(interaction), completion = makeBlockPtr(completion), triggeredByImageAnalysisTimeout] (WebKit::ProceedWithTextSelectionInImage proceedWithTextSelectionInImage) { 10864 10864 auto strongSelf = weakSelf.get(); 10865 if (!strongSelf || ProceedWithTextSelectionInImage == WebKit::ProceedWithTextSelectionInImage::Yes) {10865 if (!strongSelf || proceedWithTextSelectionInImage == WebKit::ProceedWithTextSelectionInImage::Yes) { 10866 10866 completion(nil); 10867 10867 return;
Note:
See TracChangeset
for help on using the changeset viewer.