Bug 1511235 - part2 : add test. r=jya,baku

Add new webidl method for testing only and a test.

Differential Revision: https://phabricator.services.mozilla.com/D13805
This commit is contained in:
alwu
2018-12-20 20:01:46 +00:00
parent f3a254f884
commit 614da0965d
8 changed files with 101 additions and 1 deletions

View File

@@ -1631,6 +1631,10 @@ void HTMLMediaElement::SetVisible(bool aVisible) {
}
}
bool HTMLMediaElement::IsVideoDecodingSuspended() const {
return mDecoder && mDecoder->IsVideoDecodingSuspended();
}
already_AddRefed<layers::Image> HTMLMediaElement::GetCurrentImage() {
MarkAsTainted();