From a60e5618ba0b9e43ba5c4814f8bc0b462a675569 Mon Sep 17 00:00:00 2001 From: Matt Woodrow Date: Wed, 12 Nov 2014 21:43:47 +1300 Subject: [PATCH] Backed out changeset f96fe425680e for cuasing OSX reftest failures --- layout/generic/nsVideoFrame.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layout/generic/nsVideoFrame.cpp b/layout/generic/nsVideoFrame.cpp index d3db77b10697..06e6a767d2a6 100644 --- a/layout/generic/nsVideoFrame.cpp +++ b/layout/generic/nsVideoFrame.cpp @@ -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 result = layer.forget(); return result.forget(); }