Bug 1382574 - part2 : remove HTMLMediaElement::GetHasUserInteraction(). r=bechen

MozReview-Commit-ID: 3MaumQvcR1q
This commit is contained in:
Alastor Wu
2017-11-22 00:33:20 +08:00
parent 02838507d1
commit b001a5a837
2 changed files with 2 additions and 7 deletions

View File

@@ -634,7 +634,7 @@ void
TextTrackManager::DispatchUpdateCueDisplay()
{
if (!mUpdateCueDisplayDispatched && !IsShutdown() &&
(mMediaElement->GetHasUserInteraction() || mMediaElement->IsCurrentlyPlaying())) {
mMediaElement->IsCurrentlyPlaying()) {
WEBVTT_LOG("DispatchUpdateCueDisplay");
nsPIDOMWindowInner* win = mMediaElement->OwnerDoc()->GetInnerWindow();
if (win) {
@@ -656,7 +656,7 @@ TextTrackManager::DispatchTimeMarchesOn()
// through its usual monotonic increase during normal playback; current
// executing call upon completion will check queue for further 'work'.
if (!mTimeMarchesOnDispatched && !IsShutdown() &&
(mMediaElement->GetHasUserInteraction() || mMediaElement->IsCurrentlyPlaying())) {
mMediaElement->IsCurrentlyPlaying()) {
WEBVTT_LOG("DispatchTimeMarchesOn");
nsPIDOMWindowInner* win = mMediaElement->OwnerDoc()->GetInnerWindow();
if (win) {