Bug 543458 - Make the HTML5 tree op executor use nsContentSink code for deciding when to return to the event loop. r=bnewman.

This commit is contained in:
Henri Sivonen
2010-02-26 11:18:38 +02:00
parent 8e9d9ae539
commit 4793e2d1fd
28 changed files with 652 additions and 530 deletions

View File

@@ -143,10 +143,9 @@ class nsHtml5Parser : public nsIParser,
NS_IMETHOD GetStreamListener(nsIStreamListener** aListener);
/**
* If scripts are not executing, maybe flushes tree builder and parses
* until suspension.
* Don't call. For interface compat only.
*/
NS_IMETHOD ContinueInterruptedParsing();
NS_IMETHOD ContinueInterruptedParsing();
/**
* Blocks the parser.
@@ -159,7 +158,7 @@ class nsHtml5Parser : public nsIParser,
NS_IMETHOD_(void) UnblockParser();
/**
* Query whether the parser is enabled or not.
* Query whether the parser is enabled (i.e. not blocked) or not.
*/
NS_IMETHOD_(PRBool) IsParserEnabled();
@@ -312,19 +311,17 @@ class nsHtml5Parser : public nsIParser,
void ContinueAfterFailedCharsetSwitch();
#ifdef DEBUG
PRBool HasStreamParser() {
return !!mStreamParser;
nsHtml5StreamParser* GetStreamParser() {
return mStreamParser;
}
#endif
private:
/**
* Parse until pending data is exhausted or a script blocks the parser
*/
void ParseUntilBlocked();
private:
// State variables
/**