mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-21 07:47:32 +09:00
PiP initial commit
This commit is contained in:
parent
5ec3ae4a4c
commit
9a1d4edaa9
14 changed files with 377 additions and 1 deletions
|
|
@ -1250,7 +1250,11 @@ MediaDecoder::SetElementVisibility(bool aIsVisible)
|
|||
{
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
mElementVisible = aIsVisible;
|
||||
mIsVisible = !mForcedHidden && mElementVisible;
|
||||
// A floating player remains visible when its source tab is in the
|
||||
// background or the original video is scrolled out of view.
|
||||
HTMLMediaElement* element = mOwner ? mOwner->GetMediaElement() : nullptr;
|
||||
mIsVisible = (element && element->MozPictureInPicture()) ||
|
||||
(!mForcedHidden && mElementVisible);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue