зеркало из https://github.com/mozilla/gecko-dev.git
Bug 943519 - Handle errors returned from calls to Perform; r=reviewers
This commit is contained in:
Родитель
730275b7db
Коммит
6b0657fb60
|
@ -520,7 +520,11 @@ nsHtml5TreeOpExecutor::RunFlushLoop()
|
|||
}
|
||||
NS_ASSERTION(mFlushState == eInDocUpdate,
|
||||
"Tried to perform tree op outside update batch.");
|
||||
iter->Perform(this, &scriptElement);
|
||||
nsresult rv = iter->Perform(this, &scriptElement);
|
||||
if (NS_FAILED(rv)) {
|
||||
MarkAsBroken(rv);
|
||||
break;
|
||||
}
|
||||
|
||||
// Be sure not to check the deadline if the last op was just performed.
|
||||
if (MOZ_UNLIKELY(iter == last)) {
|
||||
|
@ -622,7 +626,11 @@ nsHtml5TreeOpExecutor::FlushDocumentWrite()
|
|||
}
|
||||
NS_ASSERTION(mFlushState == eInDocUpdate,
|
||||
"Tried to perform tree op outside update batch.");
|
||||
iter->Perform(this, &scriptElement);
|
||||
nsresult rv = iter->Perform(this, &scriptElement);
|
||||
if (NS_FAILED(rv)) {
|
||||
MarkAsBroken(rv);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
mOpQueue.Clear();
|
||||
|
|
Загрузка…
Ссылка в новой задаче