Bug 1364399 - Call DidBuildModel() when not flushing. r=smaug.

MozReview-Commit-ID: CtYHqN8myb1
This commit is contained in:
Henri Sivonen
2017-10-30 17:15:19 +02:00
parent b94d63f4e4
commit bfff273da5
3 changed files with 39 additions and 30 deletions

View File

@@ -811,7 +811,8 @@ nsHtml5TreeOperation::MarkMalformedIfScript(nsIContent* aNode)
nsresult
nsHtml5TreeOperation::Perform(nsHtml5TreeOpExecutor* aBuilder,
nsIContent** aScriptElement,
bool* aInterrupted)
bool* aInterrupted,
bool* aStreamEnded)
{
switch(mOpCode) {
case eTreeOpUninitialized: {
@@ -1034,7 +1035,7 @@ nsHtml5TreeOperation::Perform(nsHtml5TreeOpExecutor* aBuilder,
return NS_OK;
}
case eTreeOpStreamEnded: {
aBuilder->DidBuildModel(false); // this causes a notifications flush anyway
*aStreamEnded = true;
return NS_OK;
}
case eTreeOpSetStyleLineNumber: {