Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(543)

Unified Diff: third_party/WebKit/Source/modules/mediarecorder/BlobEvent.cpp

Issue 1497883002: MediaRecorder: update to spec (1/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: peter@s comments: add tests for BlobEvent ctor and reordered MediaRecorder.idl to match spec Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 f94509cd0df554454d746703c6e6c3ab2d350735..07bb717bc4bd534ad526dd896bb8cb5255ee3e40 100644
--- a/third_party/WebKit/Source/modules/mediarecorder/BlobEvent.cpp
+++ b/third_party/WebKit/Source/modules/mediarecorder/BlobEvent.cpp
@@ -41,9 +41,8 @@ DEFINE_TRACE(BlobEvent)
BlobEvent::BlobEvent(const AtomicString& type, const BlobEventInit& initializer)
: Event(type, initializer)
+ , m_blob(initializer.data())
{
- if (initializer.hasBlob())
- m_blob = initializer.blob();
}
BlobEvent::BlobEvent(const AtomicString& type, Blob* blob)

Powered by Google App Engine
This is Rietveld 408576698