mPrototypeBinding->GetBaseTag(aNameSpaceID, aResult); if (!*aResult && mNextBinding) return mNextBinding->GetBaseTag(aNameSpaceID, aResult);
if (mNextBinding) return mNextBinding->GetBaseTag(aResult);      nsAutoString extends; mBinding->GetAttribute(kNameSpaceID_None, kExtendsAtom, extends);  if (!extends.IsEmpty()) {  nsAutoString prefix; PRInt32 offset = extends.FindChar(kNameSpaceSeparator); if (-1 != offset) { extends.Left(prefix, offset); extends.Cut(0, offset+1); } if (prefix.Length() > 0) {  nsCOMPtr<nsIAtom> prefixAtom = getter_AddRefs(NS_NewAtom(prefix)); nsCOMPtr<nsINameSpace> nameSpace; nsCOMPtr<nsIXMLContent> xmlContent(do_QueryInterface(mBinding)); if (xmlContent) { xmlContent->GetContainingNameSpace(*getter_AddRefs(nameSpace));  nsCOMPtr<nsINameSpace> tagSpace; nameSpace->FindNameSpace(prefixAtom, *getter_AddRefs(tagSpace)); if (tagSpace) {   *aResult = NS_NewAtom(extends); } } } }
nsXBLBinding::GetBaseTag(PRInt32* aNameSpaceID, nsIAtom** aResult){  mPrototypeBinding->GetBaseTag(aNameSpaceID, aResult);  if (!*aResult && mNextBinding)    return mNextBinding->GetBaseTag(aNameSpaceID, aResult);  return NS_OK;}