mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
LibWeb: Implement the HTMLMediaElement currentSrc attribute
This commit is contained in:
committed by
Andreas Kling
parent
74a6f50c91
commit
1a67b86b76
@@ -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 };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user