Преглед изворни кода

LibWeb: Stub HTMLMediaElement.pause

Required for rendering GIFs on Discord.
Luke Wilde пре 2 година
родитељ
комит
1e9cc2e211

+ 6 - 0
Userland/Libraries/LibWeb/HTML/HTMLMediaElement.cpp

@@ -41,4 +41,10 @@ void HTMLMediaElement::load() const
     dbgln("(STUBBED) HTMLMediaElement::load()");
 }
 
+// https://html.spec.whatwg.org/multipage/media.html#dom-media-pause
+void HTMLMediaElement::pause() const
+{
+    dbgln("(STUBBED) HTMLMediaElement::pause()");
+}
+
 }

+ 1 - 0
Userland/Libraries/LibWeb/HTML/HTMLMediaElement.h

@@ -19,6 +19,7 @@ public:
     Bindings::CanPlayTypeResult can_play_type(DeprecatedString const& type) const;
 
     void load() const;
+    void pause() const;
 
 protected:
     HTMLMediaElement(DOM::Document&, DOM::QualifiedName);

+ 1 - 0
Userland/Libraries/LibWeb/HTML/HTMLMediaElement.idl

@@ -19,4 +19,5 @@ interface HTMLMediaElement : HTMLElement {
 
     CanPlayTypeResult canPlayType(DOMString type);
     undefined load();
+    undefined pause();
 };