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

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

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 | « Source/core/html/track/TextTrackList.cpp ('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 24405a482d787507b6db05e9ae3ded83a501857b..82851ddc5df9e7c5066dbfbc1b6ff1844067891f 100644
--- a/Source/core/html/track/TrackListBase.h
+++ b/Source/core/html/track/TrackListBase.h
@@ -101,10 +101,7 @@ public:
void scheduleChangeEvent()
{
- EventInit initializer;
- initializer.bubbles = false;
- initializer.cancelable = false;
- RefPtrWillBeRawPtr<Event> event = Event::create(EventTypeNames::change, initializer);
+ RefPtrWillBeRawPtr<Event> event = Event::create(EventTypeNames::change);
event->setTarget(this);
m_mediaElement->scheduleEvent(event);
}
« no previous file with comments | « Source/core/html/track/TextTrackList.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698