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

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

Issue 180173002: Rename text track methods to make way for audio & video tracks. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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 | « Source/core/html/track/TextTrackList.h ('k') | Source/platform/graphics/media/MediaPlayer.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 ba8ca1aea8f759f1a53575c5f100be8f5627e0d7..588e3768c9aa5368e9406d72f08b47160df738bf 100644
--- a/Source/core/html/track/TextTrackList.cpp
+++ b/Source/core/html/track/TextTrackList.cpp
@@ -258,6 +258,14 @@ ExecutionContext* TextTrackList::executionContext() const
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 | « Source/core/html/track/TextTrackList.h ('k') | Source/platform/graphics/media/MediaPlayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698