Bug 1194837 - Don't use the inverse orientation matrix when computing the image space invalidate rect. r=seth, a=sylvestre

The orientation matrix converts from decoded image space to oriented image space. The invalidation rect is in decoded image space. So we need to use the orientation matrix to convert it to oriented image space, not it's inverse.

--HG--
extra : source : d3362879b8b1865812f2ec8c062d7ddd264bf8ac
This commit is contained in:
Timothy Nikkel 2015-09-26 01:26:18 -05:00
Родитель 3e795b7d24
Коммит de7f37f9f8
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -334,7 +334,7 @@ OrientedImage::GetImageSpaceInvalidationRect(const nsIntRect& aRect)
}
// Transform the invalidation rect into the correct orientation.
gfxMatrix matrix(OrientationMatrix(innerSize, /* aInvert = */ true));
gfxMatrix matrix(OrientationMatrix(innerSize));
gfxRect invalidRect(matrix.TransformBounds(gfxRect(rect.x, rect.y,
rect.width, rect.height)));
invalidRect.RoundOut();