Bug 706179 Part 2: Add a BaseTransform to layers to return the layer's transform without scaling applied r=roc

This commit is contained in:
David Zbarsky
2012-07-25 01:48:10 -07:00
parent 8322d18bd8
commit d6a30b3b4d
12 changed files with 30 additions and 22 deletions

View File

@@ -1289,7 +1289,7 @@ nsDisplayImage::ConfigureLayer(ImageLayer *aLayer)
transform.Translate(destRect.TopLeft());
transform.Scale(destRect.Width()/imageWidth,
destRect.Height()/imageHeight);
aLayer->SetTransform(gfx3DMatrix::From2D(transform));
aLayer->SetBaseTransform(gfx3DMatrix::From2D(transform));
aLayer->SetVisibleRegion(nsIntRect(0, 0, imageWidth, imageHeight));
}