mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +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
|
@ -34,7 +34,7 @@ void TrackEvent::initialize(JS::Realm& realm)
|
|||
WEB_SET_PROTOTYPE_FOR_INTERFACE(TrackEvent);
|
||||
}
|
||||
|
||||
Variant<Empty, JS::Handle<VideoTrack>, JS::Handle<AudioTrack>> TrackEvent::track() const
|
||||
Variant<Empty, JS::Handle<VideoTrack>, JS::Handle<AudioTrack>, JS::Handle<TextTrack>> TrackEvent::track() const
|
||||
{
|
||||
// FIXME: This is a bit awkward. When creating a nullable union, our IDL generator creates a type of
|
||||
// Optional<Variant<...>>, using an empty Optional to represent null. But when retrieving the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue