fixed nsbeta3+ crash (bug# unavailable 'cause bugzilla is down) and removed FMM. r=attinasi
git-svn-id: svn://10.0.0.236/trunk@79094 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -848,7 +848,9 @@ nsresult CNavDTD::DidHandleStartTag(nsCParserNode& aNode,eHTMLTags aChildTag){
|
||||
MOZ_TIMER_DEBUGLOG(("Stop: Parse Time: CNavDTD::DidHandleStartTag(), this=%p\n", this));
|
||||
const nsString& theString=aNode.GetSkippedContent();
|
||||
if(0<theString.Length()) {
|
||||
CViewSourceHTML::WriteText(theString,*mSink,PR_TRUE,PR_FALSE);
|
||||
CTextToken *theToken=(CTextToken*)mTokenAllocator->CreateTokenOfType(eToken_text,eHTMLTag_text,theString);
|
||||
nsCParserNode theNode(theToken,0);
|
||||
result=mSink->AddLeaf(theNode); //when the node get's destructed, so does the new token
|
||||
}
|
||||
MOZ_TIMER_DEBUGLOG(("Start: Parse Time: CNavDTD::DidHandleStartTag(), this=%p\n", this));
|
||||
START_TIMER()
|
||||
|
||||
@@ -941,7 +941,7 @@ void InitializeElementTable(void) {
|
||||
/*rootnodes,endrootnodes*/ &gRootTags,&gRootTags,
|
||||
/*autoclose starttags and endtags*/ 0,0,0,0,
|
||||
/*parent,incl,exclgroups*/ kExtensions, kFlowEntity, kNone,
|
||||
/*special props, prop-range*/ kNonContainer,kDefaultPropRange,
|
||||
/*special props, prop-range*/ kNone,kDefaultPropRange,
|
||||
/*special parents,kids,skip*/ 0,0,eHTMLTag_html);
|
||||
|
||||
Initialize(
|
||||
|
||||
@@ -161,7 +161,7 @@ nsHTMLContentSinkStream::~nsHTMLContentSinkStream()
|
||||
NS_IF_RELEASE(mDTD);
|
||||
|
||||
if (mBuffer)
|
||||
nsMemory::Free(mBuffer);
|
||||
delete [] mBuffer;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -678,6 +678,11 @@ void DetermineParseMode(nsString& aBuffer,nsDTDMode& aParseMode,eParserDocType&
|
||||
aParseMode=eDTDMode_quirks;
|
||||
return;
|
||||
}
|
||||
else if(aMimeType.EqualsWithConversion(kTextCSSContentType)) {
|
||||
aDocType=ePlainText;
|
||||
aParseMode=eDTDMode_quirks;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
//now let's see if we have HTML or XHTML...
|
||||
|
||||
Reference in New Issue
Block a user