mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset f96fe425680e for cuasing OSX reftest failures
This commit is contained in:
parent
2fb7541488
commit
36e79c86d8
@ -223,8 +223,9 @@ nsVideoFrame::BuildLayer(nsDisplayListBuilder* aBuilder,
|
||||
// Set a transform on the layer to draw the video in the right place
|
||||
gfxPoint p = r.TopLeft() + aContainerParameters.mOffset;
|
||||
Matrix transform = Matrix::Translation(p.x, p.y);
|
||||
transform.PreScale(r.Width() / frameSize.width,
|
||||
r.Height() / frameSize.height);
|
||||
layer->SetBaseTransform(gfx::Matrix4x4::From2D(transform));
|
||||
layer->SetScaleToSize(IntSize(r.width, r.height), ScaleMode::STRETCH);
|
||||
nsRefPtr<Layer> result = layer.forget();
|
||||
return result.forget();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user