mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-23 10:54:33 +00:00
ifdef expat until more testing can be done
This commit is contained in:
parent
085c70f16e
commit
23b564466a
@ -36,7 +36,10 @@
|
||||
#include "nsIHTMLContentSink.h"
|
||||
#include "nsHTMLTokenizer.h"
|
||||
#include "nsXMLTokenizer.h"
|
||||
|
||||
#ifdef EXPAT
|
||||
#include "nsExpatTokenizer.h"
|
||||
#endif
|
||||
|
||||
#include "prenv.h" //this is here for debug reasons...
|
||||
#include "prtypes.h" //this is here for debug reasons...
|
||||
@ -329,6 +332,8 @@ nsITokenRecycler* CWellFormedDTD::GetTokenRecycler(void){
|
||||
nsITokenizer* CWellFormedDTD::GetTokenizer(void) {
|
||||
if(!mTokenizer) {
|
||||
PRBool theExpatState=PR_FALSE;
|
||||
|
||||
#ifdef EXPAT
|
||||
char* theEnvString = PR_GetEnv("EXPAT");
|
||||
if(theEnvString){
|
||||
if(('1'==theEnvString[0]) || ('Y'==toupper(theEnvString[0]))) {
|
||||
@ -338,6 +343,9 @@ nsITokenizer* CWellFormedDTD::GetTokenizer(void) {
|
||||
if(theExpatState)
|
||||
mTokenizer=(nsHTMLTokenizer*)new nsExpatTokenizer();
|
||||
else mTokenizer=(nsHTMLTokenizer*)new nsXMLTokenizer();
|
||||
#else
|
||||
mTokenizer=(nsHTMLTokenizer*)new nsXMLTokenizer();
|
||||
#endif
|
||||
}
|
||||
return mTokenizer;
|
||||
}
|
||||
|
@ -36,7 +36,10 @@
|
||||
#include "nsIHTMLContentSink.h"
|
||||
#include "nsHTMLTokenizer.h"
|
||||
#include "nsXMLTokenizer.h"
|
||||
|
||||
#ifdef EXPAT
|
||||
#include "nsExpatTokenizer.h"
|
||||
#endif
|
||||
|
||||
#include "prenv.h" //this is here for debug reasons...
|
||||
#include "prtypes.h" //this is here for debug reasons...
|
||||
@ -329,6 +332,8 @@ nsITokenRecycler* CWellFormedDTD::GetTokenRecycler(void){
|
||||
nsITokenizer* CWellFormedDTD::GetTokenizer(void) {
|
||||
if(!mTokenizer) {
|
||||
PRBool theExpatState=PR_FALSE;
|
||||
|
||||
#ifdef EXPAT
|
||||
char* theEnvString = PR_GetEnv("EXPAT");
|
||||
if(theEnvString){
|
||||
if(('1'==theEnvString[0]) || ('Y'==toupper(theEnvString[0]))) {
|
||||
@ -338,6 +343,9 @@ nsITokenizer* CWellFormedDTD::GetTokenizer(void) {
|
||||
if(theExpatState)
|
||||
mTokenizer=(nsHTMLTokenizer*)new nsExpatTokenizer();
|
||||
else mTokenizer=(nsHTMLTokenizer*)new nsXMLTokenizer();
|
||||
#else
|
||||
mTokenizer=(nsHTMLTokenizer*)new nsXMLTokenizer();
|
||||
#endif
|
||||
}
|
||||
return mTokenizer;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user