Bug 882718 - Implement ActiveFlag at TextTrackCue object. r=rillian

MozReview-Commit-ID: 4FksCKzB0Ep
This commit is contained in:
bechen
2016-05-24 11:30:22 +08:00
parent 0190507096
commit ede86a3047
9 changed files with 52 additions and 0 deletions

View File

@@ -776,6 +776,11 @@ void HTMLMediaElement::AbortExistingLoads()
ChangeNetworkState(nsIDOMHTMLMediaElement::NETWORK_EMPTY);
ChangeReadyState(nsIDOMHTMLMediaElement::HAVE_NOTHING);
//TODO: Apply the rules for text track cue rendering Bug 865407
if (mTextTrackManager) {
mTextTrackManager->GetTextTracks()->SetCuesInactive();
}
if (fireTimeUpdate) {
// Since we destroyed the decoder above, the current playback position
// will now be reported as 0. The playback position was non-zero when