b=324967, black strips while scrolling with cairo, r=stuart

This commit is contained in:
vladimir%pobox.com 2006-04-06 18:26:55 +00:00
parent 95dea0071a
commit b50f506ee3

View File

@ -294,9 +294,10 @@ nsThebesImage::DrawTile(nsIRenderingContext &aContext,
PRInt32 x0 = aTileRect.x - aSXOffset;
PRInt32 y0 = aTileRect.y - aSYOffset;
// Let's figure out if this really is repeating, or if we're just drawing a subrect
if (aTileRect.width > mWidth ||
aTileRect.height > mHeight)
// Let's figure out if this really needs to repeat,
// or if we're just drawing a subrect
if (aSXOffset + aTileRect.width > mWidth ||
aSYOffset + aTileRect.height > mHeight)
{
reallyRepeating = PR_TRUE;
} else {