зеркало из https://github.com/mozilla/gecko-dev.git
Removed atom table hacks
This commit is contained in:
Родитель
da75f9061f
Коммит
c37ecb974c
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче