Backed out changeset 0d91127645a1 - Pushed wrong patch

This commit is contained in:
Matt Woodrow 2011-02-18 12:18:53 +13:00
Родитель de6aa336b7
Коммит 5cae09a6a2
1 изменённых файлов: 4 добавлений и 6 удалений

Просмотреть файл

@ -1013,12 +1013,10 @@ nsRect
nsLayoutUtils::MatrixTransformRect(const nsRect &aBounds,
const gfxMatrix &aMatrix, float aFactor)
{
nsRect outside = aBounds;
outside.ScaleRoundOut(1/aFactor);
gfxRect image = aMatrix.TransformBounds(gfxRect(outside.x,
outside.y,
outside.width,
outside.height));
gfxRect image = aMatrix.TransformBounds(gfxRect(NSAppUnitsToFloatPixels(aBounds.x, aFactor),
NSAppUnitsToFloatPixels(aBounds.y, aFactor),
NSAppUnitsToFloatPixels(aBounds.width, aFactor),
NSAppUnitsToFloatPixels(aBounds.height, aFactor)));
return RoundGfxRectToAppRect(image, aFactor);
}