Index: Source/modules/webmidi/MIDIInput.cpp |
diff --git a/Source/modules/webmidi/MIDIInput.cpp b/Source/modules/webmidi/MIDIInput.cpp |
index 1e9e62c80095d7bcfaa742d97850f4bb4e8f32a0..a5fd6ce552c1301056c82b69187648308dad5f14 100644 |
--- a/Source/modules/webmidi/MIDIInput.cpp |
+++ b/Source/modules/webmidi/MIDIInput.cpp |
@@ -34,13 +34,15 @@ |
namespace WebCore { |
-PassRefPtr<MIDIInput> MIDIInput::create(ScriptExecutionContext* context, const String& id, const String& manufacturer, const String& name, const String& version) |
+PassRefPtr<MIDIInput> MIDIInput::create(MIDIAccess* access, ScriptExecutionContext* context, const String& id, const String& manufacturer, const String& name, const String& version) |
{ |
- return adoptRef(new MIDIInput(context, id, manufacturer, name, version)); |
+ ASSERT(access); |
+ return adoptRef(new MIDIInput(access, context, id, manufacturer, name, version)); |
} |
-MIDIInput::MIDIInput(ScriptExecutionContext* context, const String& id, const String& manufacturer, const String& name, const String& version) |
+MIDIInput::MIDIInput(MIDIAccess* access, ScriptExecutionContext* context, const String& id, const String& manufacturer, const String& name, const String& version) |
: MIDIPort(context, id, manufacturer, name, MIDIPortTypeInput, version) |
+ , m_access(access) |
{ |
ScriptWrappable::init(this); |
} |