Bug 1283417 - part1 : implement function to notify cue's display states changed. r=bechen

MozReview-Commit-ID: AF2S2UOLCt1
This commit is contained in:
Alastor Wu
2016-08-09 16:43:07 +08:00
parent 7d85b0d469
commit e4b9fa835e
4 changed files with 32 additions and 0 deletions

View File

@@ -6207,5 +6207,16 @@ HTMLMediaElement::OnVisibilityChange(Visibility aOldVisibility,
}
}
void
HTMLMediaElement::NotifyCueDisplayStatesChanged()
{
if (!mTextTrackManager) {
return;
}
mTextTrackManager->DispatchUpdateCueDisplay();
}
} // namespace dom
} // namespace mozilla