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

MozReview-Commit-ID: 3MaumQvcR1q

--HG--
extra : rebase_source : d3dedf365b002680531ffd5e99fc0c0f66547e0f
This commit is contained in:
Alastor Wu 2017-11-22 00:33:20 +08:00
Родитель 5acb978a09
Коммит 3a53368682
2 изменённых файлов: 2 добавлений и 7 удалений

Просмотреть файл

@ -740,11 +740,6 @@ public:
void NotifyCueDisplayStatesChanged();
bool GetHasUserInteraction()
{
return mHasUserInteraction;
}
// A method to check whether we are currently playing.
bool IsCurrentlyPlaying() const;

Просмотреть файл

@ -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) {