mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:27:43 +00:00
LibWeb: Implement the HTMLMediaElement delaying-the-load-event flag
This commit is contained in:
parent
1a67b86b76
commit
27fd31b2ad
2 changed files with 16 additions and 6 deletions
|
@ -12,6 +12,7 @@
|
|||
#include <AK/Variant.h>
|
||||
#include <LibJS/Heap/MarkedVector.h>
|
||||
#include <LibJS/SafeFunction.h>
|
||||
#include <LibWeb/DOM/DocumentLoadEventDelayer.h>
|
||||
#include <LibWeb/HTML/CORSSettingAttribute.h>
|
||||
#include <LibWeb/HTML/EventLoop/Task.h>
|
||||
#include <LibWeb/HTML/HTMLElement.h>
|
||||
|
@ -184,6 +185,9 @@ private:
|
|||
// https://html.spec.whatwg.org/multipage/media.html#can-autoplay-flag
|
||||
bool m_can_autoplay { true };
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/media.html#delaying-the-load-event-flag
|
||||
Optional<DOM::DocumentLoadEventDelayer> m_delaying_the_load_event;
|
||||
|
||||
bool m_running_time_update_event_handler { false };
|
||||
Optional<Time> m_last_time_update_event_time;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue