NS_INIT_REFCNT(); mHistoryIndex = -1; mScrollPref = nsScrollPreference_kAuto; mScriptGlobal = nsnull; mScriptContext = nsnull; mMarginWidth  = -1; mMarginHeight = -1; mScrolling = -1;
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  mThread = nsnull;  InitFrameData();  mItemType = typeContent;  mCharsetReloadState = eCharsetReloadInit;}