result = parent->InsertBefore(aElement, aBefore, getter_AddRefs(ret));
rv = parent->InsertBefore(aElement, aBefore, getter_AddRefs(ret));
nsHTMLSelectElement::Add(nsIDOMHTMLElement* aElement,                         nsIDOMHTMLElement* aBefore){  nsresult result;  nsCOMPtr<nsIDOMNode> ret;  if (nsnull == aBefore) {    result = AppendChild(aElement, getter_AddRefs(ret));  }  else {    // Just in case we're not the parent, get the parent of the reference    // element    nsCOMPtr<nsIDOMNode> parent;        result = aBefore->GetParentNode(getter_AddRefs(parent));    if (parent) {      result = parent->InsertBefore(aElement, aBefore, getter_AddRefs(ret));    }  }  return result;}