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

Unified Diff: Source/core/html/track/TrackListBase.h

Issue 790973002: Use event init dictionary in core/html/track (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@union-includes
Patch Set: Created 6 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
« no previous file with comments | « Source/core/html/track/TrackEventInit.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/track/TrackListBase.h
diff --git a/Source/core/html/track/TrackListBase.h b/Source/core/html/track/TrackListBase.h
index a788a5d138f4d02babc396b057ff049dea635dda..3cccdd7eda9090ec253941663e699c1bf0c2a958 100644
--- a/Source/core/html/track/TrackListBase.h
+++ b/Source/core/html/track/TrackListBase.h
@@ -9,6 +9,7 @@
#include "core/html/HTMLMediaElement.h"
#include "core/html/track/TrackEvent.h"
+#include "core/html/track/TrackEventInit.h"
namespace blink {
@@ -118,11 +119,7 @@ public:
private:
void scheduleTrackEvent(const AtomicString& eventName, PassRefPtrWillBeRawPtr<T> track)
{
- TrackEventInit initializer;
- initializer.track = track;
- initializer.bubbles = false;
- initializer.cancelable = false;
- RefPtrWillBeRawPtr<Event> event = TrackEvent::create(eventName, initializer);
+ RefPtrWillBeRawPtr<Event> event = TrackEvent::create(eventName, track);
event->setTarget(this);
m_mediaElement->scheduleEvent(event);
}
« no previous file with comments | « Source/core/html/track/TrackEventInit.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698