child->GetTag(*getter_AddRefs(tag));
child->GetTag(getter_AddRefs(tag));
GetImmediateChild(nsIContent* aContent, nsIAtom *aTag, nsIContent** aResult) {  *aResult = nsnull;  PRInt32 childCount;  aContent->ChildCount(childCount);  for (PRInt32 i = 0; i < childCount; i++) {    nsCOMPtr<nsIContent> child;    aContent->ChildAt(i, *getter_AddRefs(child));    nsCOMPtr<nsIAtom> tag;    child->GetTag(*getter_AddRefs(tag));    if (aTag == tag.get()) {      *aResult = child;      NS_ADDREF(*aResult);      return;    }  }  return;}