mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:27:45 +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
|
||||
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();
|
||||
|
||||
|
|
|
@ -58,7 +58,7 @@ public:
|
|||
|
||||
[[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 {
|
||||
HaveNothing,
|
||||
|
|
|
@ -11,7 +11,7 @@ enum CanPlayTypeResult {
|
|||
};
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/media.html#htmlmediaelement
|
||||
[Exposed=Window, UseDeprecatedAKString]
|
||||
[Exposed=Window]
|
||||
interface HTMLMediaElement : HTMLElement {
|
||||
|
||||
// error state
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue