Backed out changeset f96fe425680e for cuasing OSX reftest failures

This commit is contained in:
Matt Woodrow 2014-11-12 21:43:47 +13:00
parent a9a96ad464
commit a60e5618ba

View File

@ -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();
}