Bug 1016525 - Ignore empty rects in AddTransformedBoundsToRegion. r=roc

This commit is contained in:
Markus Stange 2014-05-28 11:47:07 +02:00
Родитель 5b10d07e12
Коммит 6ee31049c7
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -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();