Bug 376034 - Possible incorrect coordinate transform in nsImageFrame

p=Jeremy Lea <reg@freebsd.org>
r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@225153 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
asqueella%gmail.com
2007-04-27 14:40:17 +00:00
parent 79242575f4
commit 555808ff6b

View File

@@ -560,10 +560,14 @@ nsImageFrame::OnDataAvailable(imgIRequest *aRequest,
return NS_OK;
}
// XXX We really need to round this out, now that we're doing better
// image scaling!
nsRect r = SourceRectToDest(*aRect);
// handle iconLoads first...
if (HandleIconLoads(aRequest, PR_FALSE)) {
// Image changed, invalidate
Invalidate(*aRect, PR_FALSE);
Invalidate(r, PR_FALSE);
return NS_OK;
}
@@ -585,9 +589,6 @@ nsImageFrame::OnDataAvailable(imgIRequest *aRequest,
}
}
// XXX We really need to round this out, now that we're doing better
// image scaling!
nsRect r = SourceRectToDest(*aRect);
#ifdef DEBUG_decode
printf("Source rect (%d,%d,%d,%d) -> invalidate dest rect (%d,%d,%d,%d)\n",
aRect->x, aRect->y, aRect->width, aRect->height,