RESOLVED FIXED 153292
AX: [IOS] Implement next/previous text marker functions using TextIterator
https://bugs.webkit.org/show_bug.cgi?id=153292
Summary AX: [IOS] Implement next/previous text marker functions using TextIterator
Nan Wang
Reported 2016-01-20 16:04:49 PST
Try to use TextIterator class to refactor the next/previous text marker functions on iOS. And also make text marker tests working on iOS.
Attachments
patch (66.85 KB, patch)
2016-01-20 17:48 PST, Nan Wang
no flags
patch (66.75 KB, patch)
2016-01-20 18:24 PST, Nan Wang
no flags
Radar WebKit Bug Importer
Comment 1 2016-01-20 16:05:47 PST
Nan Wang
Comment 2 2016-01-20 17:48:06 PST
chris fleizach
Comment 3 2016-01-20 18:00:15 PST
Comment on attachment 269409 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=269409&action=review > Source/WebCore/ChangeLog:11 > + Also, fixed an issue in AXObjectCache that creating a range with a replaced node AXObjectCache that creating - >AXObjectCache where creating did you add a test case for this issue you fixed? > Source/WebCore/accessibility/AXObjectCache.cpp:1551 > + remove unused line > Source/WebCore/accessibility/AXObjectCache.cpp:1577 > + bool startNodeIsReplacedOrBR = AccessibilityObject::replacedNodeNeedsCharacter(startNode) || startNode->hasTagName(brTag); can you put this code block in a helper method > Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:2506 > + if (!start || !end) can you make a helper method in WebAccessibilityTextMarker that takes a Range and returns an array of the WebAccessibilityTextMarker > Tools/DumpRenderTree/ios/AccessibilityUIElementIOS.mm:485 > + return 0; return nullptr; > Tools/DumpRenderTree/ios/AccessibilityUIElementIOS.mm:490 > + return 0; return nullptr; > Tools/DumpRenderTree/ios/AccessibilityUIElementIOS.mm:495 > + return 0; return nullptr; > Tools/DumpRenderTree/ios/AccessibilityUIElementIOS.mm:535 > + return 0; return nullptr;
Nan Wang
Comment 4 2016-01-20 18:04:40 PST
Comment on attachment 269409 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=269409&action=review Will address these comments. Thanks. >> Source/WebCore/ChangeLog:11 >> + Also, fixed an issue in AXObjectCache that creating a range with a replaced node > > AXObjectCache that creating - >AXObjectCache where creating > > did you add a test case for this issue you fixed? Yes, it's covered in the test when calling textMarkerRangeForMarkers.
Nan Wang
Comment 5 2016-01-20 18:24:26 PST
Created attachment 269411 [details] patch review comments
WebKit Commit Bot
Comment 6 2016-01-21 00:35:22 PST
Comment on attachment 269411 [details] patch Clearing flags on attachment: 269411 Committed r195405: <http://trac.webkit.org/changeset/195405>
WebKit Commit Bot
Comment 7 2016-01-21 00:35:26 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.