Closed Bug 1613375 Opened 5 years ago Closed 5 years ago

Reference frame origin offset should always be used for snapping, even if animated

Categories

(Core :: Graphics: WebRender, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla74
Tracking Status
firefox74 --- fixed

People

(Reporter: aosmond, Assigned: aosmond)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

We currently only return an identity transform when a reference frame contains an animated transform:

https://searchfox.org/mozilla-central/rev/2e355fa82aaa87e8424a9927c8136be184eeb6c7/gfx/wr/webrender/src/spatial_node.rs#703

We should always incorporate the origin offset since that is fixed without a scene rebuild.

We incorporate the reference frame origin offset for non-animated
transforms, but forgot for animated transforms. Since the offset itself
is not animated, we should still incorporate it into the snapping
transform.

Pushed by aosmond@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a2ed78dab7bc Always use reference frame origin offset in snapping transforms. r=nical
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla74
Blocks: wr-snap
No longer depends on: wr-snap
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: