| Index: third_party/WebKit/Source/modules/webmidi/MIDIAccess.cpp
|
| diff --git a/third_party/WebKit/Source/modules/webmidi/MIDIAccess.cpp b/third_party/WebKit/Source/modules/webmidi/MIDIAccess.cpp
|
| index 7114293d871718dfddd3fc777f61bfedd00db624..2e09a939bb1787a5e8eebfdbac7d7e962bfc62de 100644
|
| --- a/third_party/WebKit/Source/modules/webmidi/MIDIAccess.cpp
|
| +++ b/third_party/WebKit/Source/modules/webmidi/MIDIAccess.cpp
|
| @@ -191,21 +191,7 @@ void MIDIAccess::didReceiveMIDIData(unsigned portIndex,
|
| if (portIndex >= m_inputs.size())
|
| return;
|
|
|
| - // Convert from time in seconds which is based on the time coordinate system
|
| - // of monotonicallyIncreasingTime() into time in milliseconds (a
|
| - // DOMHighResTimeStamp) according to the same time coordinate system as
|
| - // performance.now(). This is how timestamps are defined in the Web MIDI
|
| - // spec.
|
| - Document* document = toDocument(getExecutionContext());
|
| - DCHECK(document);
|
| -
|
| - double timeStampInMilliseconds =
|
| - 1000 *
|
| - document->loader()->timing().monotonicTimeToZeroBasedDocumentTime(
|
| - timeStamp);
|
| -
|
| - m_inputs[portIndex]->didReceiveMIDIData(portIndex, data, length,
|
| - timeStampInMilliseconds);
|
| + m_inputs[portIndex]->didReceiveMIDIData(portIndex, data, length, timeStamp);
|
| }
|
|
|
| void MIDIAccess::sendMIDIData(unsigned portIndex,
|
|
|