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:
@@ -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
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user