mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
48bc589112
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. Differential Revision: https://phabricator.services.mozilla.com/D222198 |
||
---|---|---|
.. | ||
ia2 | ||
msaa | ||
sdn | ||
uia | ||
moz.build |