mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb/URLPattern: Implement the URLPattern constructors
The underlying URL::Pattern implementation still has to be fully implemented, but this does complete the IDL wrapper layer of the implementation.
This commit is contained in:
Notes:
github-actions[bot]
2025-03-04 21:52:53 +00:00
Author: https://github.com/shannonbooth Commit: https://github.com/LadybirdBrowser/ladybird/commit/ba93e2a8a38 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3739 Reviewed-by: https://github.com/trflynn89
@@ -24,6 +24,7 @@ class URLPattern : public Bindings::PlatformObject {
|
||||
GC_DECLARE_ALLOCATOR(URLPattern);
|
||||
|
||||
public:
|
||||
static WebIDL::ExceptionOr<GC::Ref<URLPattern>> create(JS::Realm&, URLPatternInput const&, Optional<String> const& base_url, URLPatternOptions const& = {});
|
||||
static WebIDL::ExceptionOr<GC::Ref<URLPattern>> construct_impl(JS::Realm&, URLPatternInput const&, String const& base_url, URLPatternOptions const& = {});
|
||||
static WebIDL::ExceptionOr<GC::Ref<URLPattern>> construct_impl(JS::Realm&, URLPatternInput const&, URLPatternOptions const& = {});
|
||||
|
||||
@@ -45,7 +46,7 @@ public:
|
||||
protected:
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
|
||||
explicit URLPattern(JS::Realm&);
|
||||
explicit URLPattern(JS::Realm&, URL::Pattern::Pattern);
|
||||
|
||||
private:
|
||||
// https://urlpattern.spec.whatwg.org/#ref-for-url-pattern%E2%91%A0
|
||||
|
||||
Reference in New Issue
Block a user