Handle "object-position"-determined anchor points in nsVideoFrame

NEW
Unassigned

Status

()

Core
Layout
3 years ago
3 years ago

People

(Reporter: dholbert, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
nsVideoFrame needs a tweak to honor the "object-position"-determined anchor point (returned via an optional arg to ComputeObjectDestRect, as of bug 1098417).

bug 1098417 is fixing this for nsImageFrame, but it's a bit trickier for nsVideoFrame, because nsVideoFrame doesn't have any handy place that it can pass the anchor-point & expect it to be honored.

Instead, I think we'll need to refactor some currently-private nsLayoutUtils code (specifically, parts of ComputeSnappedImageDrawingParameters()) to let us determine a (small) translation from our anchor-point. And then nsVideoFrame can call into that refactored code & adjust its transform accordingly.
(Reporter)

Updated

3 years ago
See Also: → bug 1105150
You need to log in before you can comment on or make changes to this bug.