Bug 518104 - Implement HTML5 changes to <script defer>. r=hsivonen, sr=mrbkap. (Tests fixed and code merged to tip by hsivonen.)

This commit is contained in:
Jonas Sicking
2009-10-02 14:13:59 +03:00
parent 53d5c38756
commit 90b687402b
29 changed files with 95 additions and 136 deletions

View File

@@ -121,7 +121,7 @@ nsHtml5TreeOpExecutor::WillParse()
// This is called when the tree construction has ended
NS_IMETHODIMP
nsHtml5TreeOpExecutor::DidBuildModel()
nsHtml5TreeOpExecutor::DidBuildModel(PRBool aTerminated)
{
NS_ASSERTION(mLifeCycle == STREAM_ENDING, "Bad life cycle.");
mLifeCycle = TERMINATED;
@@ -131,7 +131,7 @@ nsHtml5TreeOpExecutor::DidBuildModel()
}
GetTokenizer()->end();
// This is comes from nsXMLContentSink
DidBuildModelImpl();
DidBuildModelImpl(aTerminated);
mDocument->ScriptLoader()->RemoveObserver(this);
nsContentSink::StartLayout(PR_FALSE);
ScrollToRef();