Index: third_party/WebKit/Source/modules/webmidi/MIDIMessageEvent.h |
diff --git a/third_party/WebKit/Source/modules/webmidi/MIDIMessageEvent.h b/third_party/WebKit/Source/modules/webmidi/MIDIMessageEvent.h |
index d2c871dd9b076ce9d64a0e665b0a15bfd4c5ae6a..b8f036b8e4a843a8ff8c9a5a10becb70a2860cb5 100644 |
--- a/third_party/WebKit/Source/modules/webmidi/MIDIMessageEvent.h |
+++ b/third_party/WebKit/Source/modules/webmidi/MIDIMessageEvent.h |
@@ -46,7 +46,7 @@ public: |
return new MIDIMessageEvent(); |
} |
- static MIDIMessageEvent* create(double receivedTime, PassRefPtr<DOMUint8Array> data) |
+ static MIDIMessageEvent* create(double receivedTime, DOMUint8Array* data) |
{ |
return new MIDIMessageEvent(receivedTime, data); |
} |
@@ -57,17 +57,21 @@ public: |
} |
double receivedTime() { return m_receivedTime; } |
- PassRefPtr<DOMUint8Array> data() { return m_data; } |
+ DOMUint8Array* data() { return m_data; } |
const AtomicString& interfaceName() const override { return EventNames::MIDIMessageEvent; } |
- DEFINE_INLINE_VIRTUAL_TRACE() { Event::trace(visitor); } |
+ DEFINE_INLINE_VIRTUAL_TRACE() |
+ { |
+ visitor->trace(m_data); |
+ Event::trace(visitor); |
+ } |
private: |
MIDIMessageEvent() |
: m_receivedTime(0) { } |
- MIDIMessageEvent(double receivedTime, PassRefPtr<DOMUint8Array> data) |
+ MIDIMessageEvent(double receivedTime, DOMUint8Array* data) |
: Event(EventTypeNames::midimessage, true, false) |
, m_receivedTime(receivedTime) |
, m_data(data) { } |
@@ -75,7 +79,7 @@ private: |
MIDIMessageEvent(const AtomicString& type, const MIDIMessageEventInit& initializer); |
double m_receivedTime; |
- RefPtr<DOMUint8Array> m_data; |
+ Member<DOMUint8Array> m_data; |
}; |
} // namespace blink |