Index: Source/core/html/track/TextTrackList.cpp |
diff --git a/Source/core/html/track/TextTrackList.cpp b/Source/core/html/track/TextTrackList.cpp |
index c71d92f1544a67f8e63983ebd51bafcec61a6852..d20ad2d42fb8e113b47a95fc70484a84ef9f6ea6 100644 |
--- a/Source/core/html/track/TextTrackList.cpp |
+++ b/Source/core/html/track/TextTrackList.cpp |
@@ -319,6 +319,15 @@ void TextTrackList::scheduleRemoveTrackEvent(PassRefPtrWillBeRawPtr<TextTrack> t |
scheduleTrackEvent(EventTypeNames::removetrack, track); |
} |
+bool TextTrackList::hasShowingTracks() |
+{ |
+ for (unsigned i = 0; i < length(); ++i) { |
+ if (item(i)->mode() == TextTrack::showingKeyword()) |
+ return true; |
+ } |
+ return false; |
+} |
+ |
HTMLMediaElement* TextTrackList::owner() const |
{ |
return m_owner; |