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

Unified Diff: Source/core/html/track/TextTrackList.cpp

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
Index: Source/core/html/track/TextTrackList.cpp
diff --git a/Source/core/html/track/TextTrackList.cpp b/Source/core/html/track/TextTrackList.cpp
index d0bf01cf4a398aeec4ad2bd4921130ed80884b45..447bb0c17a0660cab798a7750c4a87697c18abb9 100644
--- a/Source/core/html/track/TextTrackList.cpp
+++ b/Source/core/html/track/TextTrackList.cpp
@@ -280,12 +280,7 @@ void TextTrackList::clearOwner()
void TextTrackList::scheduleTrackEvent(const AtomicString& eventName, PassRefPtrWillBeRawPtr<TextTrack> track)
{
- TrackEventInit initializer;
- initializer.track = track;
- initializer.bubbles = false;
- initializer.cancelable = false;
-
- m_asyncEventQueue->enqueueEvent(TrackEvent::create(eventName, initializer));
+ m_asyncEventQueue->enqueueEvent(TrackEvent::create(eventName, track));
}
void TextTrackList::scheduleAddTrackEvent(PassRefPtrWillBeRawPtr<TextTrack> track)

Powered by Google App Engine
This is Rietveld 408576698