Closed Bug 1921981 Opened 2 months ago Closed 8 days ago

Correctly handle the position and size of the snapshots

Categories

(Core :: Graphics: WebRender, task, P3)

task

Tracking

()

RESOLVED FIXED
134 Branch
Tracking Status
firefox134 --- fixed

People

(Reporter: nical, Assigned: nical)

References

(Blocks 1 open bug)

Details

(Whiteboard: [viewtransitions:m1:gfx])

Attachments

(1 file)

The size of a stacking context is loosely defined in the WebRender display list. To render the snapshot as an image the next display list needs to know the exact bounds of the snapshots in local/layout space to to size and position the image display item that shows it.

To handle this, we could specify the local bounds of the snapshot in the stacking context display item or in a separate API, store it in the picture and use it as the reference for how the rasterized content is sized and positioned, probably in a way similar to the blob image visible area.

Whiteboard: [viewtransitions:m1:gfx]
Assignee: nobody → nical.bugzilla
Status: NEW → ASSIGNED
Pushed by nsilva@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/cbd6a4e86db4 Adjust the image primitive to compensate for the difference in the picture's rasterized area. r=gw
Status: ASSIGNED → RESOLVED
Closed: 8 days ago
Resolution: --- → FIXED
Target Milestone: --- → 134 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: