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

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

Issue 176943005: Revert 167841 "Revert 167826 "Rename text track methods to make ..." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 6 years, 10 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 | « trunk/Source/core/html/track/TextTrackList.h ('k') | trunk/Source/platform/graphics/media/MediaPlayer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/Source/core/html/track/TextTrackList.cpp
===================================================================
--- trunk/Source/core/html/track/TextTrackList.cpp (revision 167841)
+++ trunk/Source/core/html/track/TextTrackList.cpp (working copy)
@@ -258,6 +258,14 @@
return m_owner->executionContext();
}
+void TextTrackList::clearOwnerAndClients()
+{
+ m_owner = 0;
+
+ for (unsigned i = 0; i < length(); ++i)
+ item(i)->clearClient();
+}
+
void TextTrackList::scheduleTrackEvent(const AtomicString& eventName, PassRefPtr<TextTrack> track)
{
TrackEventInit initializer;
« no previous file with comments | « trunk/Source/core/html/track/TextTrackList.h ('k') | trunk/Source/platform/graphics/media/MediaPlayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698