Bug 483015 - Expose HTML line number to JS and CSS parsers in the HTML5 parser. r=bnewman, a=beltzner.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user