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

View File

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

View File

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

View File

@ -93,12 +93,6 @@ nsXMLDocument::nsXMLDocument()
mInlineStyleSheet = 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
mTransformMediator = nsnull;
#endif
@ -119,9 +113,6 @@ nsXMLDocument::~nsXMLDocument()
mCSSLoader->DropDocumentReference();
NS_RELEASE(mCSSLoader);
}
#ifdef INCLUDE_XUL
nsXULAtoms::ReleaseAtoms();
#endif
#ifdef XSL
NS_IF_RELEASE(mTransformMediator);
#endif

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -93,12 +93,6 @@ nsXMLDocument::nsXMLDocument()
mInlineStyleSheet = 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
mTransformMediator = nsnull;
#endif
@ -119,9 +113,6 @@ nsXMLDocument::~nsXMLDocument()
mCSSLoader->DropDocumentReference();
NS_RELEASE(mCSSLoader);
}
#ifdef INCLUDE_XUL
nsXULAtoms::ReleaseAtoms();
#endif
#ifdef XSL
NS_IF_RELEASE(mTransformMediator);
#endif