From 36a6f5c49b9268d85bf3ca63076a80d2dec1bcb4 Mon Sep 17 00:00:00 2001 From: Matt Woodrow Date: Fri, 18 Feb 2011 12:18:53 +1300 Subject: [PATCH] Backed out changeset 0d91127645a1 - Pushed wrong patch --- layout/base/nsLayoutUtils.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/layout/base/nsLayoutUtils.cpp b/layout/base/nsLayoutUtils.cpp index 9e318830ce..380dc9166d 100644 --- a/layout/base/nsLayoutUtils.cpp +++ b/layout/base/nsLayoutUtils.cpp @@ -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); } -- 2.11.4.GIT