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