Make sure to not reenter painting while the mRecursiveRefreshPending flag is

still set.  Bug 278811, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@168831 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu 2005-02-05 02:47:26 +00:00
parent da66b9903b
commit 83052a8538

View File

@ -980,8 +980,10 @@ void nsViewManager::Refresh(nsView *aView, nsIRenderingContext *aContext,
}
if (RootViewManager()->mRecursiveRefreshPending) {
UpdateAllViews(aUpdateFlags);
// Unset this flag first, since if aUpdateFlags includes NS_VMREFRESH_IMMEDIATE
// we'll reenter this code from the UpdateAllViews call.
RootViewManager()->mRecursiveRefreshPending = PR_FALSE;
UpdateAllViews(aUpdateFlags);
}
localcx->ReleaseBackbuffer();