зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1016525 - Ignore empty rects in AddTransformedBoundsToRegion. r=roc
This commit is contained in:
Родитель
5b10d07e12
Коммит
6ee31049c7
|
@ -1840,6 +1840,9 @@ AddTransformedBoundsToRegion(const nsIntRegion& aRegion,
|
|||
nsIntRegion* aDest)
|
||||
{
|
||||
nsIntRect bounds = aRegion.GetBounds();
|
||||
if (bounds.IsEmpty()) {
|
||||
return;
|
||||
}
|
||||
gfxRect transformed =
|
||||
aTransform.TransformBounds(gfxRect(bounds.x, bounds.y, bounds.width, bounds.height));
|
||||
transformed.RoundOut();
|
||||
|
|
Загрузка…
Ссылка в новой задаче