mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibWeb: Update HTMLMediaElements' playback positions when invisible
This commit is contained in:
parent
c75f134eec
commit
16b296c090
Notes:
github-actions[bot]
2025-10-28 00:32:08 +00:00
Author: https://github.com/Zaggy1024
Commit: 16b296c090
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6410
Reviewed-by: https://github.com/R-Goc
Reviewed-by: https://github.com/gmta ✅
1 changed files with 1 additions and 3 deletions
|
|
@ -1159,8 +1159,6 @@ void HTMLMediaElement::set_selected_video_track(Badge<VideoTrack>, GC::Ptr<HTML:
|
|||
|
||||
void HTMLMediaElement::update_video_frame_and_timeline()
|
||||
{
|
||||
if (!paintable())
|
||||
return;
|
||||
if (!m_playback_manager)
|
||||
return;
|
||||
|
||||
|
|
@ -1181,7 +1179,7 @@ void HTMLMediaElement::update_video_frame_and_timeline()
|
|||
needs_display = true;
|
||||
}
|
||||
|
||||
if (needs_display)
|
||||
if (needs_display && paintable())
|
||||
paintable()->set_needs_display();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue