Index: Source/modules/webmidi/MIDIConnectionEvent.h |
diff --git a/Source/modules/webmidi/MIDIConnectionEvent.h b/Source/modules/webmidi/MIDIConnectionEvent.h |
index 4e9015a7fcf3ea26c2320b46d6067aea9a8ae0c5..5c47075f3f95b2345d0ff300d6d432622e2aeb2d 100644 |
--- a/Source/modules/webmidi/MIDIConnectionEvent.h |
+++ b/Source/modules/webmidi/MIDIConnectionEvent.h |
@@ -52,7 +52,7 @@ public: |
return adoptRefWillBeNoop(new MIDIConnectionEvent()); |
} |
- static PassRefPtrWillBeRawPtr<MIDIConnectionEvent> create(const AtomicString& type, PassRefPtr<MIDIPort> port) |
+ static PassRefPtrWillBeRawPtr<MIDIConnectionEvent> create(const AtomicString& type, PassRefPtrWillBeRawPtr<MIDIPort> port) |
{ |
return adoptRefWillBeNoop(new MIDIConnectionEvent(type, port)); |
} |
@@ -62,11 +62,15 @@ public: |
return adoptRefWillBeNoop(new MIDIConnectionEvent(type, initializer)); |
} |
- RefPtr<MIDIPort> port() { return m_port; } |
+ PassRefPtrWillBeRawPtr<MIDIPort> port() { return m_port; } |
virtual const AtomicString& interfaceName() const OVERRIDE { return EventNames::MIDIConnectionEvent; } |
- virtual void trace(Visitor* visitor) OVERRIDE { Event::trace(visitor); } |
+ virtual void trace(Visitor* visitor) OVERRIDE |
sof
2014/06/02 12:41:03
Move the definition the .cpp file?
zerny-chromium
2014/06/02 13:06:49
Done.
|
+ { |
+ visitor->trace(m_port); |
+ Event::trace(visitor); |
+ } |
private: |
MIDIConnectionEvent() |
@@ -74,7 +78,7 @@ private: |
ScriptWrappable::init(this); |
} |
- MIDIConnectionEvent(const AtomicString& type, PassRefPtr<MIDIPort> port) |
+ MIDIConnectionEvent(const AtomicString& type, PassRefPtrWillBeRawPtr<MIDIPort> port) |
: Event(type, false, false) |
, m_port(port) |
{ |
@@ -88,7 +92,7 @@ private: |
ScriptWrappable::init(this); |
} |
- RefPtr<MIDIPort> m_port; |
+ RefPtrWillBeMember<MIDIPort> m_port; |
}; |
} // namespace WebCore |