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-12 02:16:55 +00:00
parent 788109e4a5
commit c46b180af9
8 changed files with 100 additions and 0 deletions

View File

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