Index: Source/modules/webaudio/AudioParam.h |
diff --git a/Source/modules/webaudio/AudioParam.h b/Source/modules/webaudio/AudioParam.h |
index ba0276950abcc79ee412dfeea48991a927769c5e..ed25afabf79a89474311b8b59b50916893de2f99 100644 |
--- a/Source/modules/webaudio/AudioParam.h |
+++ b/Source/modules/webaudio/AudioParam.h |
@@ -43,14 +43,14 @@ namespace WebCore { |
class AudioNodeOutput; |
-class AudioParam FINAL : public RefCounted<AudioParam>, public ScriptWrappable, public AudioSummingJunction { |
+class AudioParam FINAL : public RefCountedWillBeGarbageCollectedFinalized<AudioParam>, public ScriptWrappable, public AudioSummingJunction { |
public: |
static const double DefaultSmoothingConstant; |
static const double SnapThreshold; |
- static PassRefPtr<AudioParam> create(AudioContext* context, const String& name, double defaultValue, double minValue, double maxValue, unsigned units = 0) |
+ static PassRefPtrWillBeRawPtr<AudioParam> create(AudioContext* context, const String& name, double defaultValue, double minValue, double maxValue, unsigned units = 0) |
{ |
- return adoptRef(new AudioParam(context, name, defaultValue, minValue, maxValue, units)); |
+ return adoptRefWillBeNoop(new AudioParam(context, name, defaultValue, minValue, maxValue, units)); |
} |
// AudioSummingJunction |
@@ -102,6 +102,8 @@ public: |
void connect(AudioNodeOutput*); |
void disconnect(AudioNodeOutput*); |
+ void trace(Visitor*) { } |
+ |
protected: |
AudioParam(AudioContext* context, const String& name, double defaultValue, double minValue, double maxValue, unsigned units = 0) |
: AudioSummingJunction(context) |