Bug 1274626 - Part 1 - add a method to HTMLMediaElement for debugging visibilty change; r=jwwang,ehsan

MozReview-Commit-ID: B1gAc0KfmCQ
This commit is contained in:
Kaku Kuo
2016-07-28 16:09:02 +08:00
parent cf23868402
commit bc0577ca70
3 changed files with 22 additions and 0 deletions

View File

@@ -797,6 +797,17 @@ HTMLMediaElement::MozDumpDebugInfo()
}
}
void
HTMLMediaElement::SetVisible(bool aVisible)
{
if (!mDecoder) {
return;
}
mDecoder->NotifyOwnerActivityChanged(aVisible);
}
already_AddRefed<DOMMediaStream>
HTMLMediaElement::GetSrcObject() const
{