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);  mWindow->GetClientBounds(bounds); bounds.x = bounds.y = 0; rv = mContentViewer->Init(mWindow->GetNativeData(NS_NATIVE_WIDGET), mDeviceContext, mPrefs, bounds, mScrollPref); if (NS_OK == rv) { mContentViewer->Show(); }   ReleaseChildren();  return rv;
nsWebShell::Embed(nsIContentViewer* aContentViewer,                  const char* aCommand,                  nsISupports* aExtraInfo){#ifdef SH_IN_FRAMES	return nsDocShell::Embed(aContentViewer, aCommand, aExtraInfo);#else   return SetupNewViewer(aContentViewer);#endif /* SH_IN_FRAMES */}