if (!mParent || !mDocument) {  if (mFrameLoader) { mFrameLoader->Destroy(); mFrameLoader = nsnull; } return NS_OK; } else if (mFrameLoader) {
if (!mParent || !mDocument || mFrameLoader) {
nsHTMLIFrameElement::EnsureFrameLoader(){  if (!mParent || !mDocument) {    // If our parent or document are gone, time to destroy the frame loader.    if (mFrameLoader) {      mFrameLoader->Destroy();      mFrameLoader = nsnull;    }    return NS_OK;  } else if (mFrameLoader) {    // If frame loader is there, we just keep it around, cached    return NS_OK;  }  nsresult rv = NS_NewFrameLoader(getter_AddRefs(mFrameLoader));  NS_ENSURE_SUCCESS(rv, rv);  mFrameLoader->Init(this);  return NS_OK;}