зеркало из https://github.com/mozilla/pjs.git
Backed out changeset 0d91127645a1 - Pushed wrong patch
This commit is contained in:
Родитель
de6aa336b7
Коммит
5cae09a6a2
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче