if (!IsInDoc()) {
nsIDocument* doc = GetCurrentDoc(); if (!doc) {
  nsIFormControlFrame* GetFormControlFrame(PRBool aFlushContent)  {    if (!IsInDoc()) {      return nsnull;    }    return GetFormControlFrameFor(this, GetOwnerDoc(), aFlushContent);  }