Bug 47101 - AX: doAXRangeForLine does not work
Summary: AX: doAXRangeForLine does not work
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: chris fleizach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-04 12:06 PDT by chris fleizach
Modified: 2010-10-04 14:03 PDT (History)
1 user (show)

See Also:


Attachments
Patch (11.29 KB, patch)
2010-10-04 12:23 PDT, chris fleizach
bdakin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description chris fleizach 2010-10-04 12:06:21 PDT
asking for NSAccessibilityRangeForLineParameterizedAttribute from a textarea always give a zero range back
Comment 1 chris fleizach 2010-10-04 12:14:39 PDT
It looks like doing this call to find the end of the line

selection.modify(SelectionController::AlterationExtend, SelectionController::DirectionRight, LineBoundary);

does not do what's expected. I suspect it thinks the end of the line is the same position as the start of the line. 

I think the better solution is to just use the existing

endOfLine() method that already exists.
Comment 2 chris fleizach 2010-10-04 12:23:16 PDT
Created attachment 69667 [details]
Patch
Comment 3 chris fleizach 2010-10-04 14:03:55 PDT
http://trac.webkit.org/changeset/69033