Bug 188276

Summary: AX: [iOS] add support to return the attributed string under the element
Product: WebKit Reporter: Nan Wang <n_wang>
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: aboxhall, apinheiro, cfleizach, dmazzoni, ews-watchlist, jcraig, jdiggs, n_wang, samuel_white, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
patch cfleizach: review+

Nan Wang
Reported 2018-08-02 14:07:27 PDT
Currently we only have attributedStringForRange:(NSRange)range, and it's using the top document and TextIterator to figure out the right start/end point. For the case where we want to get the attributed string under some element, we shouldn't do such redundant work to walk from the beginning of the document to figure out the right range.
Attachments
patch (17.12 KB, patch)
2018-08-02 14:20 PDT, Nan Wang
cfleizach: review+
Radar WebKit Bug Importer
Comment 1 2018-08-02 14:07:42 PDT
Nan Wang
Comment 2 2018-08-02 14:20:41 PDT
chris fleizach
Comment 3 2018-08-02 16:41:58 PDT
Comment on attachment 346416 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=346416&action=review > Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:2530 > + white space
Nan Wang
Comment 4 2018-08-02 16:54:47 PDT
Note You need to log in before you can comment on or make changes to this bug.