| Index: third_party/WebKit/Source/modules/mediarecorder/BlobEvent.cpp
|
| diff --git a/third_party/WebKit/Source/modules/mediarecorder/BlobEvent.cpp b/third_party/WebKit/Source/modules/mediarecorder/BlobEvent.cpp
|
| index 3f44292fafef4b48eac267c82ec3423e2bd0065e..9d25e197c2bac23d7d48f69cb0135ce94ac6f1d2 100644
|
| --- a/third_party/WebKit/Source/modules/mediarecorder/BlobEvent.cpp
|
| +++ b/third_party/WebKit/Source/modules/mediarecorder/BlobEvent.cpp
|
| @@ -5,6 +5,7 @@
|
| #include "modules/mediarecorder/BlobEvent.h"
|
|
|
| #include "modules/mediarecorder/BlobEventInit.h"
|
| +#include "wtf/dtoa/double.h"
|
|
|
| namespace blink {
|
|
|
| @@ -15,8 +16,10 @@ BlobEvent* BlobEvent::create(const AtomicString& type,
|
| }
|
|
|
| // static
|
| -BlobEvent* BlobEvent::create(const AtomicString& type, Blob* blob) {
|
| - return new BlobEvent(type, blob);
|
| +BlobEvent* BlobEvent::create(const AtomicString& type,
|
| + Blob* blob,
|
| + double timecode) {
|
| + return new BlobEvent(type, blob, timecode);
|
| }
|
|
|
| const AtomicString& BlobEvent::interfaceName() const {
|
| @@ -29,10 +32,15 @@ DEFINE_TRACE(BlobEvent) {
|
| }
|
|
|
| BlobEvent::BlobEvent(const AtomicString& type, const BlobEventInit& initializer)
|
| - : Event(type, initializer), m_blob(initializer.data()) {}
|
| + : Event(type, initializer),
|
| + m_blob(initializer.data()),
|
| + m_timecode(initializer.hasTimecode()
|
| + ? initializer.timecode()
|
| + : WTF::double_conversion::Double::NaN()) {}
|
|
|
| -BlobEvent::BlobEvent(const AtomicString& type, Blob* blob)
|
| +BlobEvent::BlobEvent(const AtomicString& type, Blob* blob, double timecode)
|
| : Event(type, false /* canBubble */, false /* cancelable */),
|
| - m_blob(blob) {}
|
| + m_blob(blob),
|
| + m_timecode(timecode) {}
|
|
|
| } // namespace blink
|
|
|