PRInt32 theChildIndex=aTagStack.GetTopmostIndexOf(aChildTag); if(kNotFound==theChildIndex) { CTagList* theSynTags=gHTMLElements[aChildTag].GetSynonymousTags(); if(theSynTags) { theChildIndex=theSynTags->GetTopmostIndexOf(aTagStack); } }
PRInt32 theChildIndex=GetIndexOfChildOrSynonym(aTagStack,aChildTag);
PRBool CanBeContained(eHTMLTags aChildTag,nsTagStack& aTagStack) {  PRBool result=PR_TRUE;  CTagList* theRootTags=gHTMLElements[aChildTag].GetRootTags();  if(theRootTags) {    PRInt32 theRootIndex=theRootTags->GetTopmostIndexOf(aTagStack);              PRInt32 theChildIndex=aTagStack.GetTopmostIndexOf(aChildTag);    if(kNotFound==theChildIndex) {      CTagList* theSynTags=gHTMLElements[aChildTag].GetSynonymousTags(); //get the list of tags that THIS tag can close      if(theSynTags) {        theChildIndex=theSynTags->GetTopmostIndexOf(aTagStack);      }    }    if(theRootIndex<theChildIndex){      eHTMLTags thePrevTag=aTagStack.Last();      result=gHTMLElements[thePrevTag].CanContainType(gHTMLElements[aChildTag].mParentBits);      return result;    }  }  return result;}