} else if (IsInDoc() && GetParent()) { CallQueryInterface(GetOwnerDoc(), &retval);
} else if (GetParent()) {   nsIDocument* currentDoc = GetCurrentDoc(); if (currentDoc) { CallQueryInterface(currentDoc, &retval); }
nsHTMLInputElement::GetRadioGroupContainer(){  nsIRadioGroupContainer* retval = nsnull;  if (mForm) {    CallQueryInterface(mForm, &retval);  } else if (IsInDoc() && GetParent()) {    CallQueryInterface(GetOwnerDoc(), &retval);  }  return retval;}