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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user