return nsDocShell::Embed(aContentViewer, aCommand, aExtraInfo);
nsresult rv; nsRect bounds;  WEB_TRACE(WEB_TRACE_CALLS, ("nsWebShell::Embed: this=%p aDocViewer=%p aCommand=%s aExtraInfo=%p", this, aContentViewer, aCommand ? aCommand : "", aExtraInfo));  NS_IF_RELEASE(mContentViewer); if (nsnull != mScriptContext) { mScriptContext->GC(); } mContentViewer = aContentViewer; NS_ADDREF(aContentViewer);    if(mWindow && mWindow->GetNativeData(NS_NATIVE_WIDGET)) { mWindow->GetClientBounds(bounds); bounds.x = bounds.y = 0; rv = mContentViewer->Init(mWindow->GetNativeData(NS_NATIVE_WIDGET), mDeviceContext, mPrefs, bounds, mScrollPref);     if (mContentViewer && mHistoryState) { nsCOMPtr<nsIDocumentViewer> docv = do_QueryInterface(mContentViewer); if (nsnull != docv) { nsCOMPtr<nsIPresShell> shell; rv = docv->GetPresShell(*getter_AddRefs(shell)); if (NS_SUCCEEDED(rv)) { rv = shell->SetHistoryState((nsILayoutHistoryState*) mHistoryState); } } }  if (NS_SUCCEEDED(rv)) { mContentViewer->Show(); } } else { mContentViewer = nsnull; }   DestroyChildren();  return rv;
nsWebShell::Embed(nsIContentViewer* aContentViewer,                  const char* aCommand,                  nsISupports* aExtraInfo){	return nsDocShell::Embed(aContentViewer, aCommand, aExtraInfo);}