if (nsXFormsUtils::IsXFormsElement(parent, NS_LITERAL_STRING("select1"))) { nsCOMPtr<nsIXFormsControl> select1(do_QueryInterface(parent)); if (select1) { select1->Refresh();
if (nsXFormsUtils::IsXFormsElement(parent, NS_LITERAL_STRING("select1")) || nsXFormsUtils::IsXFormsElement(parent, NS_LITERAL_STRING("select"))) { nsCOMPtr<nsIXFormsControl> select(do_QueryInterface(parent)); if (select) { select->Refresh();
nsXFormsItemElement::LabelRefreshed(){  nsCOMPtr<nsIDOMDocument> domDoc;  mElement->GetOwnerDocument(getter_AddRefs(domDoc));  nsCOMPtr<nsIDocument> doc = do_QueryInterface(domDoc);  // This is an optimization. It prevents us doing some of the unnecessary  // refreshes.  if (doc && doc->GetProperty(nsXFormsAtoms::deferredBindListProperty)) {    return NS_OK;  }  NS_ENSURE_STATE(mElement);  nsCOMPtr<nsIDOMNode> parent, current;  current = mElement;  do {    current->GetParentNode(getter_AddRefs(parent));    if (nsXFormsUtils::IsXFormsElement(parent, NS_LITERAL_STRING("select1"))) {      nsCOMPtr<nsIXFormsControl> select1(do_QueryInterface(parent));      if (select1) {        select1->Refresh();      }      return NS_OK;    }    current = parent;  } while(current);  return NS_OK;}