fixed bug 2274
git-svn-id: svn://10.0.0.236/trunk@17557 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -725,7 +725,7 @@ nsresult CNavDTD::HandleDefaultStartToken(CToken* aToken,eHTMLTags aChildTag,nsI
|
||||
|
||||
static eHTMLTags gBodyBlockers[]={eHTMLTag_body,eHTMLTag_frameset,eHTMLTag_head,eHTMLTag_map};
|
||||
PRInt32 theBodyBlocker=GetTopmostIndexOf(gBodyBlockers,sizeof(gBodyBlockers)/sizeof(eHTMLTag_unknown));
|
||||
if(!theBodyBlocker) {
|
||||
if(kNotFound==theBodyBlocker) {
|
||||
if(CanPropagate(eHTMLTag_body,aChildTag)) {
|
||||
mHasOpenBody=PR_TRUE;
|
||||
CStartToken theToken(eHTMLTag_body); //open the body container...
|
||||
@@ -1269,7 +1269,7 @@ PRBool CNavDTD::CanPropagate(eHTMLTags aParentTag,eHTMLTags aChildTag) const {
|
||||
}//if
|
||||
}//if
|
||||
else if(nsHTMLElement::IsTextTag(aChildTag)){
|
||||
|
||||
result=PR_TRUE;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#include "nsParser.h"
|
||||
#include "nsIContentSink.h"
|
||||
#include "nsString.h"
|
||||
#include "nsCRT.h"
|
||||
#include "nsCRT.h"
|
||||
#include "nsScanner.h"
|
||||
#include "prenv.h" //this is here for debug reasons...
|
||||
#include "plstr.h"
|
||||
@@ -32,7 +32,7 @@
|
||||
#include "nsWellFormedDTD.h"
|
||||
#include "nsViewSourceHTML.h" //uncomment this to partially enable viewsource...
|
||||
|
||||
#define rickgdebug
|
||||
#undef rickgdebug
|
||||
#ifdef rickgdebug
|
||||
#include "CRtfDTD.h"
|
||||
#endif
|
||||
@@ -863,7 +863,7 @@ nsresult nsParser::OnDataAvailable(nsIURL* aURL, nsIInputStream *pIStream, PRUin
|
||||
theStartPos+=theNumRead;
|
||||
}//while
|
||||
|
||||
return ResumeParse();
|
||||
return ResumeParse();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user