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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user