Index: Source/core/html/track/CueTimeline.cpp |
diff --git a/Source/core/html/track/CueTimeline.cpp b/Source/core/html/track/CueTimeline.cpp |
index 141e1f3b9d5dcef5f218f1a92b54a74588494f6c..37aa29dd8becab1794d49154b02f3c4f2c645383 100644 |
--- a/Source/core/html/track/CueTimeline.cpp |
+++ b/Source/core/html/track/CueTimeline.cpp |
@@ -83,6 +83,12 @@ void CueTimeline::removeCueInternal(PassRefPtrWillBeRawPtr<TextTrackCue> cue) |
} |
} |
+void CueTimeline::hideCues(TextTrack*, const TextTrackCueList* cues) |
+{ |
+ for (size_t i = 0; i < cues->length(); ++i) |
+ cues->item(i)->removeDisplayTree(); |
+} |
+ |
static bool trackIndexCompare(TextTrack* a, TextTrack* b) |
{ |
return a->trackIndex() - b->trackIndex() < 0; |