mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Fix bug 311550 -- Don't do anything in EnableRefresh if there are no pending
updates. r+sr=roc
This commit is contained in:
parent
001d642509
commit
f02a33078c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user