diff --git a/layout/base/FrameLayerBuilder.cpp b/layout/base/FrameLayerBuilder.cpp index 00b870241198..a52a970a1cad 100644 --- a/layout/base/FrameLayerBuilder.cpp +++ b/layout/base/FrameLayerBuilder.cpp @@ -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();