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