mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:58:11 +00:00
LibWeb: Stub HTMLMediaElement.pause
Required for rendering GIFs on Discord.
This commit is contained in:
parent
2c77364716
commit
1e9cc2e211
3 changed files with 8 additions and 0 deletions
|
@ -41,4 +41,10 @@ void HTMLMediaElement::load() const
|
||||||
dbgln("(STUBBED) HTMLMediaElement::load()");
|
dbgln("(STUBBED) HTMLMediaElement::load()");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://html.spec.whatwg.org/multipage/media.html#dom-media-pause
|
||||||
|
void HTMLMediaElement::pause() const
|
||||||
|
{
|
||||||
|
dbgln("(STUBBED) HTMLMediaElement::pause()");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,6 +19,7 @@ public:
|
||||||
Bindings::CanPlayTypeResult can_play_type(DeprecatedString const& type) const;
|
Bindings::CanPlayTypeResult can_play_type(DeprecatedString const& type) const;
|
||||||
|
|
||||||
void load() const;
|
void load() const;
|
||||||
|
void pause() const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
HTMLMediaElement(DOM::Document&, DOM::QualifiedName);
|
HTMLMediaElement(DOM::Document&, DOM::QualifiedName);
|
||||||
|
|
|
@ -19,4 +19,5 @@ interface HTMLMediaElement : HTMLElement {
|
||||||
|
|
||||||
CanPlayTypeResult canPlayType(DOMString type);
|
CanPlayTypeResult canPlayType(DOMString type);
|
||||||
undefined load();
|
undefined load();
|
||||||
|
undefined pause();
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue