зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1382574 - part2 : remove HTMLMediaElement::GetHasUserInteraction(). r=bechen
MozReview-Commit-ID: 3MaumQvcR1q --HG-- extra : rebase_source : d3dedf365b002680531ffd5e99fc0c0f66547e0f
This commit is contained in:
Родитель
5acb978a09
Коммит
3a53368682
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче