зеркало из 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)
|
nsIntRegion* aDest)
|
||||||
{
|
{
|
||||||
nsIntRect bounds = aRegion.GetBounds();
|
nsIntRect bounds = aRegion.GetBounds();
|
||||||
|
if (bounds.IsEmpty()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
gfxRect transformed =
|
gfxRect transformed =
|
||||||
aTransform.TransformBounds(gfxRect(bounds.x, bounds.y, bounds.width, bounds.height));
|
aTransform.TransformBounds(gfxRect(bounds.x, bounds.y, bounds.width, bounds.height));
|
||||||
transformed.RoundOut();
|
transformed.RoundOut();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче