Elimiate calls to nsFrame::Invalidate when the dirtyRect is empty. Also, removed some invalid code from nsFrame::Invalidate and added DEBUG check to catch later offenders. b=103266 r=rbs sr=hyatt

git-svn-id: svn://10.0.0.236/trunk@107407 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
attinasi%netscape.com
2001-11-06 01:44:20 +00:00
parent 84b9551c2a
commit 11481ea927
19 changed files with 141 additions and 47 deletions

View File

@@ -370,7 +370,7 @@ NS_IMETHODIMP nsImageFrame::OnDataAvailable(imgIRequest *aRequest, nsIPresContex
r.x += mBorderPadding.left;
r.y += mBorderPadding.top;
if (whichLoad == 0)
if (whichLoad == 0 && !r.IsEmpty())
Invalidate(aPresContext, r, PR_FALSE);
return NS_OK;