NS_INIT_REFCNT(); mHistoryIndex = -1; mScrollPref = nsScrollPreference_kAuto; mScriptGlobal = nsnull; mScriptContext = nsnull; mThreadEventQueue = nsnull; InitFrameData(PR_TRUE); mIsFrame = PR_FALSE; mWebShellType = nsWebShellContent; mChromeShell = nsnull; mSHist = nsnull; mIsInSHist = PR_FALSE;   mDefaultCharacterSet = "ISO-8859-1"; mProcessedEndDocumentLoad = PR_FALSE; mHintCharset = ""; mHintCharsetSource = kCharsetUninitialized; mForceCharacterSet = ""; mHistoryService = nsnull; #ifdef NECKO mPrompter = nsnull; #else mNetSupport = nsnull;
nsWebShell::nsWebShell() : nsDocShell(){#ifdef DEBUG  // We're counting the number of |nsWebShells| to help find leaks  ++gNumberOfWebShells;#endif#ifdef DEBUG    printf("WEBSHELL+ = %ld\n", gNumberOfWebShells);#endif  NS_INIT_REFCNT();  mThread = nsnull;  InitFrameData();  mItemType = typeContent;  mCharsetReloadState = eCharsetReloadInit;}