tmp->GetParent(*getter_AddRefs(content));
tmp->GetParent(getter_AddRefs(content));
static PRBool BelongsInForm(nsIDOMHTMLFormElement *aForm,                            nsIContent *aContent){  nsCOMPtr<nsIContent> form(do_QueryInterface(aForm));  if (!form) {    NS_WARNING("This should not happen, form is not an nsIContent!");    return PR_TRUE;  }  if (form.get() == aContent) {    // The list for aForm contains the form itself, forms should not    // be reachable by name in the form namespace, so we return false    // here.    return PR_FALSE;  }  nsCOMPtr<nsIContent> content;  aContent->GetParent(*getter_AddRefs(content));  while (content) {    if (content == form) {      // aContent is contained within the form so we return true.      return PR_TRUE;    }    nsCOMPtr<nsIAtom> tag;    content->GetTag(*getter_AddRefs(tag));    if (tag.get() == nsHTMLAtoms::form) {      // The child is contained within a form, but not the right form      // so we ignore it.      return PR_FALSE;    }    nsIContent *tmp = content;    tmp->GetParent(*getter_AddRefs(content));  }  PRInt32 count = 0;  form->ChildCount(count);  if (!count) {    // The form is a leaf and aContent wasn't inside any other form so    // we return true    return PR_TRUE;  }  // The form is a container but aContent wasn't inside the form,  // return false  return PR_FALSE;}