Closed Bug 1770981 Opened 2 years ago Closed 2 years ago

Accessibility use of GetRenderedText is expensive with large blocks

Categories

(Core :: Layout: Block and Inline, defect)

defect

Tracking

()

RESOLVED FIXED
102 Branch
Tracking Status
firefox102 --- fixed

People

(Reporter: jfkthame, Assigned: jfkthame)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Spun off from bug 1770606 as this is just one aspect of the performance problems observed there.

By maintaining a line cursor in the block for querying purposes, separate from that used during display-list construction, we can greatly reduce the overhead of a11y calling GetRenderedText on all the text frames in a large document; see bug 1770606 comment 21.

Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Blocks: 1771060
Pushed by jkew@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c2431bf964b4
Split the nsBlockFrame "line cursor" into separate cursors used for display-list building vs frame queries. r=layout-reviewers,Jamie,emilio
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: