NS_INIT_ISUPPORTS(); mThread = nsnull; InitFrameData(); mItemType = typeContent; mCharsetReloadState = eCharsetReloadInit;
NS_INIT_REFCNT(); mHistoryIndex = -1; mScrollPref = nsScrollPreference_kAuto; mScriptGlobal = nsnull; mScriptContext = nsnull; mThreadEventQueue = nsnull; InitFrameData(PR_TRUE); mIsFrame = PR_FALSE; mWebShellType = nsWebShellContent; mChromeElement = nsnull; mSHist = nsnull; mIsInSHist = PR_FALSE; mFailedToLoadHistoryService = PR_FALSE; mDefaultCharacterSet = ""; mProcessedEndDocumentLoad = PR_FALSE; mHintCharset = ""; mHintCharsetSource = kCharsetUninitialized; mViewSource=PR_FALSE; mForceCharacterSet = ""; mHistoryService = nsnull; mHistoryState = 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_ISUPPORTS();  mThread = nsnull;  InitFrameData();  mItemType = typeContent;  mCharsetReloadState = eCharsetReloadInit;}