nsIFormControlFrame* fcFrame = GetSelectFrame();  if (fcFrame) { nsISelectControlFrame* selectFrame = nsnull;  CallQueryInterface(fcFrame, &selectFrame);  if (selectFrame) { selectFrame->OnOptionTextChanged(this); } }
NotifyTextChanged();
nsHTMLOptionElement::SetLabel(const nsAString& aValue){                                                                    nsresult result;  result = nsGenericHTMLContainerElement::SetAttr(kNameSpaceID_HTML,                                                  nsHTMLAtoms::label,                                                  aValue, PR_TRUE);  // XXX Why does this only happen to the combobox?  and what about  // when the text gets set and label is blank?  if (NS_SUCCEEDED(result)) {    // No need to flush here, if the select element/frame doesn't    // exist yet we don't need to force it to be created only to    // notify it about this new label    nsIFormControlFrame* fcFrame = GetSelectFrame();    if (fcFrame) {      nsISelectControlFrame* selectFrame = nsnull;      CallQueryInterface(fcFrame, &selectFrame);      if (selectFrame) {        selectFrame->OnOptionTextChanged(this);      }    }  }  return NS_OK;}