зеркало из https://github.com/mozilla/gecko-dev.git
Added missing parameter to scanner constructor in the case where we're parsing a string
This commit is contained in:
Родитель
ab17f0e419
Коммит
4850d9a00a
|
@ -512,7 +512,7 @@ PRInt32 nsParser::Parse(fstream& aStream){
|
|||
PRInt32 nsParser::Parse(nsString& aSourceBuffer,PRBool anHTMLString){
|
||||
PRInt32 result=kNoError;
|
||||
|
||||
CParserContext* pc=new CParserContext(new CScanner(kUnknownFilename),&aSourceBuffer,0);
|
||||
CParserContext* pc=new CParserContext(new CScanner(kUnknownFilename,PR_FALSE),&aSourceBuffer,0);
|
||||
PushContext(*pc);
|
||||
if(PR_TRUE==anHTMLString)
|
||||
pc->mSourceType="text/html";
|
||||
|
|
|
@ -512,7 +512,7 @@ PRInt32 nsParser::Parse(fstream& aStream){
|
|||
PRInt32 nsParser::Parse(nsString& aSourceBuffer,PRBool anHTMLString){
|
||||
PRInt32 result=kNoError;
|
||||
|
||||
CParserContext* pc=new CParserContext(new CScanner(kUnknownFilename),&aSourceBuffer,0);
|
||||
CParserContext* pc=new CParserContext(new CScanner(kUnknownFilename,PR_FALSE),&aSourceBuffer,0);
|
||||
PushContext(*pc);
|
||||
if(PR_TRUE==anHTMLString)
|
||||
pc->mSourceType="text/html";
|
||||
|
|
Загрузка…
Ссылка в новой задаче