Bug 217256

Summary: AX: Expose lineRangeForPosition for iOS Accessibility code
Product: WebKit Reporter: chris fleizach <cfleizach>
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: aboxhall, apinheiro, dmazzoni, ews-watchlist, jcraig, jdiggs, samuel_white, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
patch
zalan: review+
patch none

Description chris fleizach 2020-10-02 15:47:01 PDT
IOS needs to make use of the existing lineRangeForPosition method
Comment 1 chris fleizach 2020-10-02 15:47:17 PDT
<rdar://problem/67478962>
Comment 2 chris fleizach 2020-10-02 15:48:22 PDT
Created attachment 410384 [details]
patch
Comment 3 zalan 2020-10-05 15:50:28 PDT
Comment on attachment 410384 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=410384&action=review

> Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:2689
> +    auto *startMarker = [WebAccessibilityTextMarker textMarkerWithVisiblePosition:range.start cache:self.axBackingObject->axObjectCache()];
> +    auto *endMarker = [WebAccessibilityTextMarker textMarkerWithVisiblePosition:range.end cache:self.axBackingObject->axObjectCache()];

auto* start/endMarker
Comment 4 chris fleizach 2020-10-06 11:37:13 PDT
Created attachment 410671 [details]
patch

Updated
Comment 5 EWS 2020-10-06 16:21:38 PDT
Committed r268084: <https://trac.webkit.org/changeset/268084>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 410671 [details].