Closed Bug 1728709 Opened 3 years ago Closed 3 years ago

Add GetPaintRect alternative that uses current context

Categories

(Core :: Web Painting, task)

task

Tracking

()

RESOLVED FIXED
93 Branch
Tracking Status
firefox93 --- fixed

People

(Reporter: mattwoodrow, Assigned: mattwoodrow)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

For cases where we have the display list builder, and a gfxContext (basically all Paint implementations), we can use GetClippedBounds of the item, plus GetClipExtents on the context to estimate what the building rect would have been.

Adding a helper for this, and moving all the obvious callers over to it will get us closer to being able to remove the building rect entirely.

Blocks: 1728710
Pushed by jmuizelaar@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/93f8701fc36d
Add nsDisplayItem::GetPaintRect that computes a value using the current clip extents. r=jrmuizel
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 93 Branch
Regressions: 1729937
Regressions: 1734966
Regressions: 1735593
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: