Bug 1390660, part 2 - Define and use a new macro for CC isupports. r=peterv

The main purpose of defining this is to make conversion of places that
use the non-CC variant easier. There are many more places that could
be converted to use these new macros, if somebody felt motivated.

MozReview-Commit-ID: HspjcN76fjg
This commit is contained in:
Andrew McCreight
2017-08-16 13:14:11 -07:00
parent 1ca9932763
commit 435747b289
7 changed files with 47 additions and 63 deletions

View File

@@ -28,26 +28,14 @@ HTMLAreaElement::~HTMLAreaElement()
{
}
NS_INTERFACE_TABLE_HEAD_CYCLE_COLLECTION_INHERITED(HTMLAreaElement)
NS_INTERFACE_TABLE_INHERITED(HTMLAreaElement,
nsIDOMHTMLAreaElement,
Link)
NS_INTERFACE_TABLE_TAIL_INHERITING(nsGenericHTMLElement)
NS_IMPL_ISUPPORTS_CYCLE_COLLECTION_INHERITED(HTMLAreaElement,
nsGenericHTMLElement,
nsIDOMHTMLAreaElement,
Link)
NS_IMPL_ADDREF_INHERITED(HTMLAreaElement, Element)
NS_IMPL_RELEASE_INHERITED(HTMLAreaElement, Element)
NS_IMPL_CYCLE_COLLECTION_CLASS(HTMLAreaElement)
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INHERITED(HTMLAreaElement,
nsGenericHTMLElement)
NS_IMPL_CYCLE_COLLECTION_TRAVERSE(mRelList)
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END
NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN_INHERITED(HTMLAreaElement,
nsGenericHTMLElement)
NS_IMPL_CYCLE_COLLECTION_UNLINK(mRelList)
NS_IMPL_CYCLE_COLLECTION_UNLINK_END
NS_IMPL_CYCLE_COLLECTION_INHERITED(HTMLAreaElement,
nsGenericHTMLElement,
mRelList)
NS_IMPL_ELEMENT_CLONE(HTMLAreaElement)