Closed Bug 1816094 Opened 2 years ago Closed 2 years ago

[CTW] Simplify caching of text bounds

Categories

(Core :: Disability Access APIs, task)

task

Tracking

()

RESOLVED FIXED
112 Branch
Tracking Status
firefox112 --- fixed

People

(Reporter: Jamie, Assigned: Jamie)

References

Details

Attachments

(1 file)

While working on bug 1816022, I had an idea that will simplify the calculation of text bounds a little in LocalAccessible::BundleFieldsForCache.

Previously, we retrieved an ancestor frame and various rects and used a transform to make continuation char rects relative to their primary frame.
Since all we need is an offset, we can just use nsIFrame::GetOffsetTo, which does all of this for us.

Pushed by jteh@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/bfecd6efa53d
Simplify calculation of character bounds in LocalAccessible::BundleFieldsForCache. r=morgan
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: