зеркало из https://github.com/mozilla/pjs.git
Bug 634366 - Remove broken CreateForNativePixmapSurface usage from CairoImageOGL. r=joe a=blocking2.0
This commit is contained in:
Родитель
32657fc14b
Коммит
de6aa336b7
|
@ -1013,10 +1013,12 @@ nsRect
|
|||
nsLayoutUtils::MatrixTransformRect(const nsRect &aBounds,
|
||||
const gfxMatrix &aMatrix, float aFactor)
|
||||
{
|
||||
gfxRect image = aMatrix.TransformBounds(gfxRect(NSAppUnitsToFloatPixels(aBounds.x, aFactor),
|
||||
NSAppUnitsToFloatPixels(aBounds.y, aFactor),
|
||||
NSAppUnitsToFloatPixels(aBounds.width, aFactor),
|
||||
NSAppUnitsToFloatPixels(aBounds.height, aFactor)));
|
||||
nsRect outside = aBounds;
|
||||
outside.ScaleRoundOut(1/aFactor);
|
||||
gfxRect image = aMatrix.TransformBounds(gfxRect(outside.x,
|
||||
outside.y,
|
||||
outside.width,
|
||||
outside.height));
|
||||
|
||||
return RoundGfxRectToAppRect(image, aFactor);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче