diff --git a/dom/telephony/CallEvent.cpp b/dom/telephony/CallEvent.cpp index 781ce882f65..33086efdb8f 100644 --- a/dom/telephony/CallEvent.cpp +++ b/dom/telephony/CallEvent.cpp @@ -26,21 +26,9 @@ CallEvent::Create(TelephonyCall* aCall) return event.forget(); } -NS_IMPL_CYCLE_COLLECTION_CLASS(CallEvent) - -NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INHERITED(CallEvent, - nsDOMEvent) - // NS_IMPL_CYCLE_COLLECTION_TRAVERSE_NATIVE_PTR(tmp->mCall->ToISupports(), - // TelephonyCall, "mCall") - NS_CYCLE_COLLECTION_NOTE_EDGE_NAME(cb, "mCall"); - cb.NoteNativeChild(tmp->mCall->ToISupports(), NS_CYCLE_COLLECTION_PARTICIPANT(TelephonyCall)); - -NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END - -NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN_INHERITED(CallEvent, - nsDOMEvent) - NS_IMPL_CYCLE_COLLECTION_UNLINK(mCall) -NS_IMPL_CYCLE_COLLECTION_UNLINK_END +NS_IMPL_CYCLE_COLLECTION_INHERITED_1(CallEvent, + nsDOMEvent, + mCall) NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED(CallEvent) NS_INTERFACE_MAP_ENTRY(nsIDOMCallEvent) diff --git a/dom/telephony/TelephonyCall.cpp b/dom/telephony/TelephonyCall.cpp index eebbe5eab85..0667f005a61 100644 --- a/dom/telephony/TelephonyCall.cpp +++ b/dom/telephony/TelephonyCall.cpp @@ -140,20 +140,9 @@ TelephonyCall::NotifyError(const nsAString& aError) } } -NS_IMPL_CYCLE_COLLECTION_CLASS(TelephonyCall) - -NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INHERITED(TelephonyCall, - nsDOMEventTargetHelper) - // NS_IMPL_CYCLE_COLLECTION_TRAVERSE_NATIVE_PTR(tmp->mTelephony->ToISupports(), - // Telephony, "mTelephony") - NS_CYCLE_COLLECTION_NOTE_EDGE_NAME(cb, "mTelephony"); - cb.NoteNativeChild(tmp->mTelephony->ToISupports(), NS_CYCLE_COLLECTION_PARTICIPANT(Telephony)); -NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END - -NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN_INHERITED(TelephonyCall, - nsDOMEventTargetHelper) - NS_IMPL_CYCLE_COLLECTION_UNLINK(mTelephony) -NS_IMPL_CYCLE_COLLECTION_UNLINK_END +NS_IMPL_CYCLE_COLLECTION_INHERITED_1(TelephonyCall, + nsDOMEventTargetHelper, + mTelephony) NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED(TelephonyCall) NS_INTERFACE_MAP_ENTRY(nsIDOMTelephonyCall)