mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibWeb: Allow TrackEvent track to be a TextTrack
Fixes two FIXMEs :^)
This commit is contained in:
parent
13cd653d1c
commit
ab91a616b8
Notes:
sideshowbarker
2024-07-17 20:33:50 +09:00
Author: https://github.com/jamierocks
Commit: ab91a616b8
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/447
Reviewed-by: https://github.com/awesomekling
3 changed files with 6 additions and 7 deletions
|
@ -1,5 +1,6 @@
|
|||
#import <DOM/Event.idl>
|
||||
#import <HTML/AudioTrack.idl>
|
||||
#import <HTML/TextTrack.idl>
|
||||
#import <HTML/VideoTrack.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/media.html#trackevent
|
||||
|
@ -7,11 +8,9 @@
|
|||
interface TrackEvent : Event {
|
||||
constructor(DOMString type, optional TrackEventInit eventInitDict = {});
|
||||
|
||||
// FIXME: Should be: (VideoTrack or AudioTrack or TextTrack)?
|
||||
readonly attribute (VideoTrack or AudioTrack)? track;
|
||||
readonly attribute (VideoTrack or AudioTrack or TextTrack)? track;
|
||||
};
|
||||
|
||||
dictionary TrackEventInit : EventInit {
|
||||
// FIXME: Should be: (VideoTrack or AudioTrack or TextTrack)?
|
||||
(VideoTrack or AudioTrack)? track = null;
|
||||
(VideoTrack or AudioTrack or TextTrack)? track = null;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue