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

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

Issue 368123002: Remove pointless uses of EventInit (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months 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 | « no previous file | Source/core/html/track/TrackListBase.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/track/TextTrackList.cpp
diff --git a/Source/core/html/track/TextTrackList.cpp b/Source/core/html/track/TextTrackList.cpp
index 5d0c6821c4c6fb2673257a3b9c223aca8a7d9147..726b4060246360ed71f26e58e963d29300261114 100644
--- a/Source/core/html/track/TextTrackList.cpp
+++ b/Source/core/html/track/TextTrackList.cpp
@@ -308,11 +308,7 @@ void TextTrackList::scheduleChangeEvent()
// Fire a simple event named change at the media element's textTracks
// attribute's TextTrackList object.
- EventInit initializer;
- initializer.bubbles = false;
- initializer.cancelable = false;
-
- m_asyncEventQueue->enqueueEvent(Event::create(EventTypeNames::change, initializer));
+ m_asyncEventQueue->enqueueEvent(Event::create(EventTypeNames::change));
}
void TextTrackList::scheduleRemoveTrackEvent(PassRefPtrWillBeRawPtr<TextTrack> track)
« no previous file with comments | « no previous file | Source/core/html/track/TrackListBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698