Bug 483015 - Expose HTML line number to JS and CSS parsers in the HTML5 parser. r=bnewman, a=beltzner.

This commit is contained in:
Henri Sivonen
2009-10-28 15:48:37 +02:00
parent 972da1bcbb
commit 6d5095eb25
11 changed files with 123 additions and 19 deletions

View File

@@ -294,7 +294,7 @@ class nsHtml5Parser : public nsIParser,
return mTokenizer;
}
void InitializeDocWriteParserState(nsAHtml5TreeBuilderState* aState);
void InitializeDocWriteParserState(nsAHtml5TreeBuilderState* aState, PRInt32 aLine);
void DropStreamParser() {
mStreamParser = nsnull;
@@ -378,6 +378,11 @@ class nsHtml5Parser : public nsIParser,
* The stream parser.
*/
nsRefPtr<nsHtml5StreamParser> mStreamParser;
/**
*
*/
PRInt32 mRootContextLineNumber;
/**
* Whether it's OK to transfer parsing back to the stream parser