LibWeb: Make factory methods of CSS::CSSRuleList fallible

This commit is contained in:
Kenneth Myhra 2023-02-12 23:03:41 +01:00 committed by Linus Groh
commit 48872cd190
Notes: sideshowbarker 2024-07-17 05:18:58 +09:00
3 changed files with 16 additions and 14 deletions

View file

@ -23,8 +23,8 @@ class CSSRuleList : public Bindings::LegacyPlatformObject {
WEB_PLATFORM_OBJECT(CSSRuleList, Bindings::LegacyPlatformObject);
public:
static CSSRuleList* create(JS::Realm&, JS::MarkedVector<CSSRule*> const&);
static CSSRuleList* create_empty(JS::Realm&);
static WebIDL::ExceptionOr<JS::NonnullGCPtr<CSSRuleList>> create(JS::Realm&, JS::MarkedVector<CSSRule*> const&);
static WebIDL::ExceptionOr<JS::NonnullGCPtr<CSSRuleList>> create_empty(JS::Realm&);
~CSSRuleList() = default;