if (NS_FAILED(rv = element->GetTag(*getter_AddRefs(tag)))) return(rv); if (tag.get() == kTreeAtom)
if (NS_SUCCEEDED(rv = element->GetTag(*getter_AddRefs(tag))))
XULSortServiceImpl::IsTreeElement(nsIContent *element){	PRBool		isTreeNode = PR_FALSE;	PRInt32		nameSpaceID;	nsresult	rv;	if (NS_SUCCEEDED(rv = element->GetNameSpaceID(nameSpaceID)))	{		if (nameSpaceID == kNameSpaceID_XUL)		{			nsCOMPtr<nsIAtom>	tag;			if (NS_FAILED(rv = element->GetTag(*getter_AddRefs(tag))))				return(rv);			if (tag.get() == kTreeAtom)			{				isTreeNode = PR_TRUE;			}		}	}	return(isTreeNode);}