mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibWeb: Align AudioContext constructor with current spec steps
This commit is contained in:
parent
c33d72bb41
commit
f01ccf5424
Notes:
github-actions[bot]
2025-01-16 13:57:27 +00:00
Author: https://github.com/tcl3
Commit: f01ccf5424
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3203
Reviewed-by: https://github.com/shannonbooth ✅
6 changed files with 341 additions and 53 deletions
|
@ -28,7 +28,7 @@ class AudioContext final : public BaseAudioContext {
|
|||
GC_DECLARE_ALLOCATOR(AudioContext);
|
||||
|
||||
public:
|
||||
static WebIDL::ExceptionOr<GC::Ref<AudioContext>> construct_impl(JS::Realm&, AudioContextOptions const& context_options = {});
|
||||
static WebIDL::ExceptionOr<GC::Ref<AudioContext>> construct_impl(JS::Realm&, Optional<AudioContextOptions> const& context_options = {});
|
||||
|
||||
virtual ~AudioContext() override;
|
||||
|
||||
|
@ -40,7 +40,10 @@ public:
|
|||
WebIDL::ExceptionOr<GC::Ref<WebIDL::Promise>> close();
|
||||
|
||||
private:
|
||||
explicit AudioContext(JS::Realm&, AudioContextOptions const& context_options);
|
||||
explicit AudioContext(JS::Realm& realm)
|
||||
: BaseAudioContext(realm)
|
||||
{
|
||||
}
|
||||
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
virtual void visit_edges(Cell::Visitor&) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue