mInsideSelect1 = PR_FALSE;
nsXFormsChoicesElement::ParentChanged(nsIDOMElement *aNewParent){  mInsideSelect1 = PR_FALSE;  if (aNewParent) {    nsCOMPtr<nsIDOMNode> parent, tmp;    mElement->GetParentNode(getter_AddRefs(parent));    while (parent) {      if (nsXFormsUtils::IsXFormsElement(parent, NS_LITERAL_STRING("select1"))) {        mInsideSelect1 = PR_TRUE;        break;      }      tmp.swap(parent);      tmp->GetParentNode(getter_AddRefs(parent));    }    Refresh();  }  return NS_OK;}