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 2fb7541488
commit 36e79c86d8

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