Fix bug 311550 -- Don't do anything in EnableRefresh if there are no pending

updates.  r+sr=roc
This commit is contained in:
bzbarsky%mit.edu 2005-10-07 22:29:47 +00:00
parent 001d642509
commit f02a33078c

View File

@ -3414,6 +3414,11 @@ NS_IMETHODIMP nsViewManager::EnableRefresh(PRUint32 aUpdateFlags)
mRefreshEnabled = PR_TRUE;
if (!mHasPendingUpdates) {
// Nothing to do
return NS_OK;
}
// nested batching can combine IMMEDIATE with DEFERRED. Favour
// IMMEDIATE over DEFERRED and DEFERRED over NO_SYNC.
if (aUpdateFlags & NS_VMREFRESH_IMMEDIATE) {