Migrating

-------------
46269 [nsbeta2+] - Fixed a crash, in CStartToken::IsEmpty(), caused by a wrong casting.
r=hiekki.


git-svn-id: svn://10.0.0.236/trunk@75284 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
harishd%netscape.com
2000-08-01 01:02:09 +00:00
parent fcdb5021b6
commit 54856496e7
2 changed files with 18 additions and 8 deletions

View File

@@ -1912,10 +1912,15 @@ public:
CElement *theElement=GetElement(aTag);
if(NS_SUCCEEDED(result)) {
nsCParserNode *theNode=(nsCParserNode*)aNode;
CStartToken *theToken=(CStartToken*)theNode->mToken;
if(theToken->IsEmpty() && (aTag==aContext->Last())){
result=CElement::HandleEndToken(aNode,aTag,aContext,aSink);
if(aNode) {
nsCParserNode* theNode=(nsCParserNode*)aNode;
eHTMLTokenTypes theType=eHTMLTokenTypes(theNode->GetTokenType());
if(theType==eToken_start) {
CStartToken *theToken=(CStartToken*)theNode->mToken;
if(theToken && theToken->IsEmpty() && (aTag==aContext->Last())){
result=CElement::HandleEndToken(aNode,aTag,aContext,aSink);
}
}
}
}