mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibWeb: Implement the HTMLMediaElement currentSrc attribute
This commit is contained in:
parent
74a6f50c91
commit
1a67b86b76
Notes:
sideshowbarker
2024-07-17 06:40:35 +09:00
Author: https://github.com/trflynn89
Commit: 1a67b86b76
Pull-request: https://github.com/SerenityOS/serenity/pull/18431
3 changed files with 11 additions and 1 deletions
|
@ -33,6 +33,8 @@ public:
|
|||
|
||||
void queue_a_media_element_task(JS::SafeFunction<void()> steps);
|
||||
|
||||
String const& current_src() const { return m_current_src; }
|
||||
|
||||
enum class NetworkState : u16 {
|
||||
Empty,
|
||||
Idle,
|
||||
|
@ -142,6 +144,9 @@ private:
|
|||
// https://html.spec.whatwg.org/multipage/media.html#dom-media-crossorigin
|
||||
CORSSettingAttribute m_crossorigin { CORSSettingAttribute::NoCORS };
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/media.html#dom-media-currentsrc
|
||||
String m_current_src;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/media.html#dom-media-networkstate
|
||||
NetworkState m_network_state { NetworkState::Empty };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue