mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibWeb/LibURL: Use an IgnoreCase enum for URLPatternOptions
This is to save a future name conflict that will appear between the options IDL dictionary and the options struct that are both present in the spec. It is also a nicer interface for now given there is only a single option at the moment.
This commit is contained in:
Notes:
github-actions[bot]
2025-04-06 12:28:11 +00:00
Author: https://github.com/shannonbooth Commit: https://github.com/LadybirdBrowser/ladybird/commit/8a33c57c1ed Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3847 Reviewed-by: https://github.com/trflynn89
@@ -15,9 +15,13 @@ namespace Web::URLPattern {
|
||||
|
||||
using URLPatternInit = URL::Pattern::Init;
|
||||
using URLPatternInput = URL::Pattern::Input;
|
||||
using URLPatternOptions = URL::Pattern::Options;
|
||||
using URLPatternResult = URL::Pattern::Result;
|
||||
|
||||
// https://urlpattern.spec.whatwg.org/#dictdef-urlpatternoptions
|
||||
struct URLPatternOptions {
|
||||
bool ignore_case { false };
|
||||
};
|
||||
|
||||
// https://urlpattern.spec.whatwg.org/#urlpattern
|
||||
class URLPattern : public Bindings::PlatformObject {
|
||||
WEB_PLATFORM_OBJECT(URLPattern, Bindings::PlatformObject);
|
||||
|
||||
Reference in New Issue
Block a user