parent->GetParent(*getter_AddRefs(tmpNode));
parent->GetParent(getter_AddRefs(tmpNode));
isSelfOrAncestor(nsIContent *aNode, nsIContent *aChild){  if (aNode == aChild)    return PR_TRUE;  nsCOMPtr<nsIContent> parent, tmpNode;  PRInt32 childCount = 0;  /*   * If aChild doesn't have children it can't be our ancestor   */  aChild->ChildCount(childCount);  if (childCount <= 0) {    return PR_FALSE;  }  aNode->GetParent(*getter_AddRefs(parent));  while (parent) {    if (parent.get() == aChild) {      /*       * We found aChild as one of our ancestors       */      return PR_TRUE;    }    parent->GetParent(*getter_AddRefs(tmpNode));    parent = tmpNode;  }  return PR_FALSE;}