зеркало из https://github.com/mozilla/gecko-dev.git
Added an extra condition on an assertion.
This commit is contained in:
Родитель
baed8eb5d4
Коммит
bf8ce0afea
|
@ -749,7 +749,7 @@ nsresult nsParser::CreateCompatibleDTD(nsIDTD** aDTD,
|
|||
|
||||
DetermineParseMode(*aDocTypeStr,theDTDMode,theDocType);
|
||||
|
||||
NS_ASSERTION(aDTDMode==theDTDMode,"aDTDMode overrides the mode selected from the DOCTYPE ");
|
||||
NS_ASSERTION(aDTDMode==eDTDMode_unknown || aDTDMode==theDTDMode,"aDTDMode overrides the mode selected from the DOCTYPE ");
|
||||
|
||||
if(aDTDMode!=eDTDMode_unknown) theDTDMode=aDTDMode; // aDTDMode takes precedence over theDTDMode
|
||||
|
||||
|
|
|
@ -749,7 +749,7 @@ nsresult nsParser::CreateCompatibleDTD(nsIDTD** aDTD,
|
|||
|
||||
DetermineParseMode(*aDocTypeStr,theDTDMode,theDocType);
|
||||
|
||||
NS_ASSERTION(aDTDMode==theDTDMode,"aDTDMode overrides the mode selected from the DOCTYPE ");
|
||||
NS_ASSERTION(aDTDMode==eDTDMode_unknown || aDTDMode==theDTDMode,"aDTDMode overrides the mode selected from the DOCTYPE ");
|
||||
|
||||
if(aDTDMode!=eDTDMode_unknown) theDTDMode=aDTDMode; // aDTDMode takes precedence over theDTDMode
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче