Removed atom table hacks

This commit is contained in:
kipp%netscape.com 1999-09-30 21:17:28 +00:00
parent da75f9061f
commit c37ecb974c
10 changed files with 0 additions and 41 deletions

View File

@ -190,7 +190,6 @@ nsHTMLDocument::nsHTMLDocument()
mLayers = nsnull; mLayers = nsnull;
mNamedItems = nsnull; mNamedItems = nsnull;
mParser = nsnull; mParser = nsnull;
nsHTMLAtoms::AddRefAtoms();
mDTDMode = eDTDMode_Nav; mDTDMode = eDTDMode_Nav;
mCSSLoader = nsnull; mCSSLoader = nsnull;
mDocTypeStr=nsnull; mDocTypeStr=nsnull;
@ -261,9 +260,6 @@ nsHTMLDocument::~nsHTMLDocument()
mDocTypeStr = nsnull; mDocTypeStr = nsnull;
} }
// XXX don't bother doing this until the dll is unloaded???
// nsHTMLAtoms::ReleaseAtoms();
// These will be converted to a nsDeque // These will be converted to a nsDeque
delete[] mParentStack; delete[] mParentStack;
delete[] mChildStack; delete[] mChildStack;

View File

@ -303,7 +303,6 @@ CSSParserImpl::CSSParserImpl()
mGroupStack(nsnull) mGroupStack(nsnull)
{ {
NS_INIT_REFCNT(); NS_INIT_REFCNT();
nsCSSAtoms::AddRefAtoms();
} }
NS_IMETHODIMP NS_IMETHODIMP
@ -328,7 +327,6 @@ CSSParserImpl::~CSSParserImpl()
NS_IF_RELEASE(mGroupStack); NS_IF_RELEASE(mGroupStack);
NS_IF_RELEASE(mNameSpace); NS_IF_RELEASE(mNameSpace);
NS_IF_RELEASE(mSheet); NS_IF_RELEASE(mSheet);
nsCSSAtoms::ReleaseAtoms();
} }
NS_IMETHODIMP NS_IMETHODIMP

View File

@ -1074,7 +1074,6 @@ CSSStyleSheetImpl::CSSStyleSheetImpl()
mScriptObject(nsnull) mScriptObject(nsnull)
{ {
NS_INIT_REFCNT(); NS_INIT_REFCNT();
nsCSSAtoms::AddRefAtoms();
mInner = new CSSStyleSheetInner(this); mInner = new CSSStyleSheetInner(this);
@ -1101,7 +1100,6 @@ CSSStyleSheetImpl::CSSStyleSheetImpl(const CSSStyleSheetImpl& aCopy)
mInner(aCopy.mInner) mInner(aCopy.mInner)
{ {
NS_INIT_REFCNT(); NS_INIT_REFCNT();
nsCSSAtoms::AddRefAtoms();
mInner->AddSheet(this); mInner->AddSheet(this);
@ -1166,7 +1164,6 @@ CSSStyleSheetImpl::~CSSStyleSheetImpl()
// XXX The document reference is not reference counted and should // XXX The document reference is not reference counted and should
// not be released. The document will let us know when it is going // not be released. The document will let us know when it is going
// away. // away.
nsCSSAtoms::ReleaseAtoms();
} }
NS_IMPL_ADDREF(CSSStyleSheetImpl) NS_IMPL_ADDREF(CSSStyleSheetImpl)

View File

@ -93,12 +93,6 @@ nsXMLDocument::nsXMLDocument()
mInlineStyleSheet = nsnull; mInlineStyleSheet = nsnull;
mCSSLoader = nsnull; mCSSLoader = nsnull;
// XXX The XML world depends on the html atoms
nsHTMLAtoms::AddRefAtoms();
#ifdef INCLUDE_XUL
// XUL world lives within XML world until it gets a place of its own
nsXULAtoms::AddRefAtoms();
#endif
#ifdef XSL #ifdef XSL
mTransformMediator = nsnull; mTransformMediator = nsnull;
#endif #endif
@ -119,9 +113,6 @@ nsXMLDocument::~nsXMLDocument()
mCSSLoader->DropDocumentReference(); mCSSLoader->DropDocumentReference();
NS_RELEASE(mCSSLoader); NS_RELEASE(mCSSLoader);
} }
#ifdef INCLUDE_XUL
nsXULAtoms::ReleaseAtoms();
#endif
#ifdef XSL #ifdef XSL
NS_IF_RELEASE(mTransformMediator); NS_IF_RELEASE(mTransformMediator);
#endif #endif

View File

@ -190,7 +190,6 @@ nsHTMLDocument::nsHTMLDocument()
mLayers = nsnull; mLayers = nsnull;
mNamedItems = nsnull; mNamedItems = nsnull;
mParser = nsnull; mParser = nsnull;
nsHTMLAtoms::AddRefAtoms();
mDTDMode = eDTDMode_Nav; mDTDMode = eDTDMode_Nav;
mCSSLoader = nsnull; mCSSLoader = nsnull;
mDocTypeStr=nsnull; mDocTypeStr=nsnull;
@ -261,9 +260,6 @@ nsHTMLDocument::~nsHTMLDocument()
mDocTypeStr = nsnull; mDocTypeStr = nsnull;
} }
// XXX don't bother doing this until the dll is unloaded???
// nsHTMLAtoms::ReleaseAtoms();
// These will be converted to a nsDeque // These will be converted to a nsDeque
delete[] mParentStack; delete[] mParentStack;
delete[] mChildStack; delete[] mChildStack;

View File

@ -303,7 +303,6 @@ CSSParserImpl::CSSParserImpl()
mGroupStack(nsnull) mGroupStack(nsnull)
{ {
NS_INIT_REFCNT(); NS_INIT_REFCNT();
nsCSSAtoms::AddRefAtoms();
} }
NS_IMETHODIMP NS_IMETHODIMP
@ -328,7 +327,6 @@ CSSParserImpl::~CSSParserImpl()
NS_IF_RELEASE(mGroupStack); NS_IF_RELEASE(mGroupStack);
NS_IF_RELEASE(mNameSpace); NS_IF_RELEASE(mNameSpace);
NS_IF_RELEASE(mSheet); NS_IF_RELEASE(mSheet);
nsCSSAtoms::ReleaseAtoms();
} }
NS_IMETHODIMP NS_IMETHODIMP

View File

@ -1074,7 +1074,6 @@ CSSStyleSheetImpl::CSSStyleSheetImpl()
mScriptObject(nsnull) mScriptObject(nsnull)
{ {
NS_INIT_REFCNT(); NS_INIT_REFCNT();
nsCSSAtoms::AddRefAtoms();
mInner = new CSSStyleSheetInner(this); mInner = new CSSStyleSheetInner(this);
@ -1101,7 +1100,6 @@ CSSStyleSheetImpl::CSSStyleSheetImpl(const CSSStyleSheetImpl& aCopy)
mInner(aCopy.mInner) mInner(aCopy.mInner)
{ {
NS_INIT_REFCNT(); NS_INIT_REFCNT();
nsCSSAtoms::AddRefAtoms();
mInner->AddSheet(this); mInner->AddSheet(this);
@ -1166,7 +1164,6 @@ CSSStyleSheetImpl::~CSSStyleSheetImpl()
// XXX The document reference is not reference counted and should // XXX The document reference is not reference counted and should
// not be released. The document will let us know when it is going // not be released. The document will let us know when it is going
// away. // away.
nsCSSAtoms::ReleaseAtoms();
} }
NS_IMPL_ADDREF(CSSStyleSheetImpl) NS_IMPL_ADDREF(CSSStyleSheetImpl)

View File

@ -303,7 +303,6 @@ CSSParserImpl::CSSParserImpl()
mGroupStack(nsnull) mGroupStack(nsnull)
{ {
NS_INIT_REFCNT(); NS_INIT_REFCNT();
nsCSSAtoms::AddRefAtoms();
} }
NS_IMETHODIMP NS_IMETHODIMP
@ -328,7 +327,6 @@ CSSParserImpl::~CSSParserImpl()
NS_IF_RELEASE(mGroupStack); NS_IF_RELEASE(mGroupStack);
NS_IF_RELEASE(mNameSpace); NS_IF_RELEASE(mNameSpace);
NS_IF_RELEASE(mSheet); NS_IF_RELEASE(mSheet);
nsCSSAtoms::ReleaseAtoms();
} }
NS_IMETHODIMP NS_IMETHODIMP

View File

@ -1074,7 +1074,6 @@ CSSStyleSheetImpl::CSSStyleSheetImpl()
mScriptObject(nsnull) mScriptObject(nsnull)
{ {
NS_INIT_REFCNT(); NS_INIT_REFCNT();
nsCSSAtoms::AddRefAtoms();
mInner = new CSSStyleSheetInner(this); mInner = new CSSStyleSheetInner(this);
@ -1101,7 +1100,6 @@ CSSStyleSheetImpl::CSSStyleSheetImpl(const CSSStyleSheetImpl& aCopy)
mInner(aCopy.mInner) mInner(aCopy.mInner)
{ {
NS_INIT_REFCNT(); NS_INIT_REFCNT();
nsCSSAtoms::AddRefAtoms();
mInner->AddSheet(this); mInner->AddSheet(this);
@ -1166,7 +1164,6 @@ CSSStyleSheetImpl::~CSSStyleSheetImpl()
// XXX The document reference is not reference counted and should // XXX The document reference is not reference counted and should
// not be released. The document will let us know when it is going // not be released. The document will let us know when it is going
// away. // away.
nsCSSAtoms::ReleaseAtoms();
} }
NS_IMPL_ADDREF(CSSStyleSheetImpl) NS_IMPL_ADDREF(CSSStyleSheetImpl)

View File

@ -93,12 +93,6 @@ nsXMLDocument::nsXMLDocument()
mInlineStyleSheet = nsnull; mInlineStyleSheet = nsnull;
mCSSLoader = nsnull; mCSSLoader = nsnull;
// XXX The XML world depends on the html atoms
nsHTMLAtoms::AddRefAtoms();
#ifdef INCLUDE_XUL
// XUL world lives within XML world until it gets a place of its own
nsXULAtoms::AddRefAtoms();
#endif
#ifdef XSL #ifdef XSL
mTransformMediator = nsnull; mTransformMediator = nsnull;
#endif #endif
@ -119,9 +113,6 @@ nsXMLDocument::~nsXMLDocument()
mCSSLoader->DropDocumentReference(); mCSSLoader->DropDocumentReference();
NS_RELEASE(mCSSLoader); NS_RELEASE(mCSSLoader);
} }
#ifdef INCLUDE_XUL
nsXULAtoms::ReleaseAtoms();
#endif
#ifdef XSL #ifdef XSL
NS_IF_RELEASE(mTransformMediator); NS_IF_RELEASE(mTransformMediator);
#endif #endif