Fix for bug 393035 (nsNSElementTearoff should participate in cycle collection). r/sr=jst, a=sicking.

This commit is contained in:
peterv%propagandism.org 2007-09-02 10:45:36 +00:00
Родитель aa82d7841d
Коммит 56fa29caa8
2 изменённых файлов: 8 добавлений и 3 удалений

Просмотреть файл

@ -674,12 +674,15 @@ nsNode3Tearoff::IsDefaultNamespace(const nsAString& aNamespaceURI,
//---------------------------------------------------------------------- //----------------------------------------------------------------------
NS_IMPL_CYCLE_COLLECTION_1(nsNSElementTearoff, mContent)
NS_INTERFACE_MAP_BEGIN(nsNSElementTearoff) NS_INTERFACE_MAP_BEGIN(nsNSElementTearoff)
NS_INTERFACE_MAP_ENTRY(nsIDOMNSElement) NS_INTERFACE_MAP_ENTRY(nsIDOMNSElement)
NS_INTERFACE_MAP_ENTRIES_CYCLE_COLLECTION(nsNSElementTearoff)
NS_INTERFACE_MAP_END_AGGREGATED(mContent) NS_INTERFACE_MAP_END_AGGREGATED(mContent)
NS_IMPL_ADDREF(nsNSElementTearoff) NS_IMPL_CYCLE_COLLECTING_ADDREF(nsNSElementTearoff)
NS_IMPL_RELEASE(nsNSElementTearoff) NS_IMPL_CYCLE_COLLECTING_RELEASE(nsNSElementTearoff)
NS_IMETHODIMP NS_IMETHODIMP
nsNSElementTearoff::GetElementsByClassName(const nsAString& aClasses, nsNSElementTearoff::GetElementsByClassName(const nsAString& aClasses,

Просмотреть файл

@ -1055,10 +1055,12 @@ _elementName::Clone(nsINodeInfo *aNodeInfo, nsINode **aResult) const \
class nsNSElementTearoff : public nsIDOMNSElement class nsNSElementTearoff : public nsIDOMNSElement
{ {
public: public:
NS_DECL_ISUPPORTS NS_DECL_CYCLE_COLLECTING_ISUPPORTS
NS_DECL_NSIDOMNSELEMENT NS_DECL_NSIDOMNSELEMENT
NS_DECL_CYCLE_COLLECTION_CLASS(nsNSElementTearoff)
nsNSElementTearoff(nsGenericElement *aContent) : mContent(aContent) nsNSElementTearoff(nsGenericElement *aContent) : mContent(aContent)
{ {
} }