fixed bug18312; this isn't PDT+, but is something that Phil has been *really* anxious to have fixed. r=nisheeth

This commit is contained in:
rickg@netscape.com
1999-11-23 03:09:12 +00:00
parent 4b6809a90e
commit a086a213a5
4 changed files with 18 additions and 12 deletions
+7 -5
View File
@@ -861,12 +861,14 @@ NS_IMETHODIMP CViewSourceHTML::HandleToken(CToken* aToken,nsIParser* aParser) {
result=WriteTag(mStartTag,aToken,aToken->GetAttributeCount(),PR_TRUE);
if((!mIsText) && mParser && (NS_OK==result)) {
CObserverService& theService=mParser->GetObserverService();
CParserContext* pc=mParser->PeekContext();
void* theDocID=(pc)? pc->mKey:0;
eHTMLTags theTag=(eHTMLTags)theToken->GetTypeID();
CObserverService* theService=mParser->GetObserverService();
if(theService) {
CParserContext* pc=mParser->PeekContext();
void* theDocID=(pc)? pc->mKey:0;
eHTMLTags theTag=(eHTMLTags)theToken->GetTypeID();
result=theService.Notify(theTag,theContext.mTokenNode,(PRUint32)theDocID,kViewSourceCommand,mParser);
result=theService->Notify(theTag,theContext.mTokenNode,(PRUint32)theDocID,kViewSourceCommand,mParser);
}
}
theContext.mTokenNode.Init(0,0,gTokenRecycler); //now recycle.
break;