mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:47:35 +00:00
LibWeb: Port HTMLMediaElement interface from DeprecatedString to String
This commit is contained in:
parent
e5910a4593
commit
f4bc1602e2
3 changed files with 3 additions and 3 deletions
|
@ -166,7 +166,7 @@ JS::NonnullGCPtr<TimeRanges> HTMLMediaElement::buffered() const
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/media.html#dom-navigator-canplaytype
|
// https://html.spec.whatwg.org/multipage/media.html#dom-navigator-canplaytype
|
||||||
WebIDL::ExceptionOr<Bindings::CanPlayTypeResult> HTMLMediaElement::can_play_type(DeprecatedString const& type) const
|
WebIDL::ExceptionOr<Bindings::CanPlayTypeResult> HTMLMediaElement::can_play_type(StringView type) const
|
||||||
{
|
{
|
||||||
auto& vm = this->vm();
|
auto& vm = this->vm();
|
||||||
|
|
||||||
|
|
|
@ -58,7 +58,7 @@ public:
|
||||||
|
|
||||||
[[nodiscard]] JS::NonnullGCPtr<TimeRanges> buffered() const;
|
[[nodiscard]] JS::NonnullGCPtr<TimeRanges> buffered() const;
|
||||||
|
|
||||||
WebIDL::ExceptionOr<Bindings::CanPlayTypeResult> can_play_type(DeprecatedString const& type) const;
|
WebIDL::ExceptionOr<Bindings::CanPlayTypeResult> can_play_type(StringView type) const;
|
||||||
|
|
||||||
enum class ReadyState : u16 {
|
enum class ReadyState : u16 {
|
||||||
HaveNothing,
|
HaveNothing,
|
||||||
|
|
|
@ -11,7 +11,7 @@ enum CanPlayTypeResult {
|
||||||
};
|
};
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/media.html#htmlmediaelement
|
// https://html.spec.whatwg.org/multipage/media.html#htmlmediaelement
|
||||||
[Exposed=Window, UseDeprecatedAKString]
|
[Exposed=Window]
|
||||||
interface HTMLMediaElement : HTMLElement {
|
interface HTMLMediaElement : HTMLElement {
|
||||||
|
|
||||||
// error state
|
// error state
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue