зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
3e795b7d24
Коммит
de7f37f9f8
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче