Bug 1334112 - part1: Add IsLoaded functions for TextTrack, TextTrackList, TextTrackManager. r=rillian

MozReview-Commit-ID: GBEKZvLUiPn
This commit is contained in:
bechen
2017-02-20 15:27:06 +08:00
parent f1bf9d77e5
commit e7707bafc3
6 changed files with 42 additions and 0 deletions

View File

@@ -848,5 +848,12 @@ TextTrackManager::ReportTelemetryForCue()
}
}
bool
TextTrackManager::IsLoaded()
{
return mTextTracks ? mTextTracks->AreTextTracksLoaded() : true;
}
} // namespace dom
} // namespace mozilla