[UIA] Support ITextRangeProvider::GetBoundingRectangles
Categories
(Core :: Disability Access APIs, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox132 | --- | fixed |
People
(Reporter: Jamie, Assigned: nlapre)
References
(Blocks 1 open bug)
Details
Attachments
(1 external file)
This will allow UIA clients to retrieve screen coordinates for text.
| Assignee | ||
Comment 1•2 years ago
|
||
This revision implements GetBoundingRectangles by walking the text range line by
line, adding each line rect to an output array, then returning that array to UIA
clients. Since this logic was tied up in TextLeafRange::Bounds, this revision
first creates function WalkLineRects which encapsulates the logic of walking
a TextLeafRange line-by-line. Then, it uses that function to rewrite Bounds and
implement new function LineRects, which stores all non-empty onscreen line rects
in an nsTArray and returns them. The implementation of GetBoundingRectangles has
been filled out; it's mostly straightforward but contains some SAFEARRAY work
since UIA expects rects as doubles, rather than our internal uint32_t
representation. Finally, this revision adds a test for GetBoundingRectangles.
Updated•2 years ago
|
Comment 3•2 years ago
|
||
| bugherder | ||
Description
•