Backed out changeset 0d91127645a1 - Pushed wrong patch
authorMatt Woodrow <mwoodrow@mozilla.com>
Fri, 18 Feb 2011 12:18:53 +1300
changeset 62772 c9e4457b68ebffe067943fb87a2ee4f92c98ebc3
parent 62771 0d91127645a14a4b58617b95684773fdd5d0e156
child 62773 63bdd49bd8bd924dd0e9f1368a08050de10254e7
push idunknown
push userunknown
push dateunknown
milestone2.0b12pre
backs out0d91127645a14a4b58617b95684773fdd5d0e156
Backed out changeset 0d91127645a1 - Pushed wrong patch
layout/base/nsLayoutUtils.cpp
--- a/layout/base/nsLayoutUtils.cpp
+++ b/layout/base/nsLayoutUtils.cpp
@@ -1008,22 +1008,20 @@ nsLayoutUtils::RoundedRectIntersectRect(
   result.Or(r1, r2);
   return result;
 }
 
 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);
 }
 
 nsPoint
 nsLayoutUtils::MatrixTransformPoint(const nsPoint &aPoint,
                                     const gfxMatrix &aMatrix, float aFactor)
 {