зеркало из https://github.com/mozilla/pjs.git
Repost invalidate events that fire in the middle of a view update batch. Bug
280214 partial fix, r+sr=roc
This commit is contained in:
Родитель
99a77bfc1a
Коммит
4b0b6a1704
|
@ -4199,8 +4199,17 @@ nsViewManager::ProcessInvalidateEvent()
|
|||
{
|
||||
NS_ASSERTION(IsRootVM(),
|
||||
"Incorrectly targeted invalidate event");
|
||||
FlushPendingInvalidates();
|
||||
// If we're in the middle of an update batch, just repost the event,
|
||||
// to be processed when the batch ends.
|
||||
PRBool processEvent = (mUpdateBatchCnt == 0);
|
||||
if (processEvent) {
|
||||
FlushPendingInvalidates();
|
||||
}
|
||||
mInvalidateEventQueue = nsnull;
|
||||
if (!processEvent) {
|
||||
// We didn't actually process this event... post a new one
|
||||
PostInvalidateEvent();
|
||||
}
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
|
Загрузка…
Ссылка в новой задаче