mDirty = PR_TRUE;
if (nsnull != mOptions) { mOptions->AddOption(aContent); }   nsIFormControlFrame* selectFrame = nsnull; nsresult result = nsGenericHTMLElement::GetPrimaryFrame(this, selectFrame); if (NS_SUCCEEDED(result) && (nsnull != selectFrame)) { nsString action("a"); action.Append(mOptions->IndexOf(aContent),10); selectFrame->SetProperty(nsHTMLAtoms::option, action); }   return NS_OK;
nsOptionList::AddOption(nsIContent* aOption){  // Just mark ourselves as dirty. The next time someone  // makes a call that requires us to look at the elements  // list, we'll recompute it.  mDirty = PR_TRUE;}