diff --git a/dom/media/webaudio/AudioBufferSourceNode.cpp b/dom/media/webaudio/AudioBufferSourceNode.cpp index 61bfc82f1759..554e4699831b 100644 --- a/dom/media/webaudio/AudioBufferSourceNode.cpp +++ b/dom/media/webaudio/AudioBufferSourceNode.cpp @@ -19,22 +19,7 @@ namespace mozilla { namespace dom { -NS_IMPL_CYCLE_COLLECTION_CLASS(AudioBufferSourceNode) - -NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN(AudioBufferSourceNode) - NS_IMPL_CYCLE_COLLECTION_UNLINK(mBuffer) - NS_IMPL_CYCLE_COLLECTION_UNLINK(mPlaybackRate) - NS_IMPL_CYCLE_COLLECTION_UNLINK(mDetune) - if (tmp->Context()) { - tmp->DisconnectFromGraph(); - } -NS_IMPL_CYCLE_COLLECTION_UNLINK_END_INHERITED(AudioNode) - -NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INHERITED(AudioBufferSourceNode, AudioNode) - NS_IMPL_CYCLE_COLLECTION_TRAVERSE(mBuffer) - NS_IMPL_CYCLE_COLLECTION_TRAVERSE(mPlaybackRate) - NS_IMPL_CYCLE_COLLECTION_TRAVERSE(mDetune) -NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END +NS_IMPL_CYCLE_COLLECTION_INHERITED(AudioBufferSourceNode, AudioNode, mBuffer, mPlaybackRate, mDetune) NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED(AudioBufferSourceNode) NS_INTERFACE_MAP_END_INHERITING(AudioNode)