LibWeb: Make factory method of Selection::Selection fallible

This commit is contained in:
Kenneth Myhra 2023-02-19 18:39:04 +01:00 committed by Andreas Kling
commit dcbe927b48
Notes: sideshowbarker 2024-07-17 09:39:38 +09:00
3 changed files with 4 additions and 4 deletions

View file

@ -15,7 +15,7 @@ class Selection final : public Bindings::PlatformObject {
WEB_PLATFORM_OBJECT(Selection, Bindings::PlatformObject);
public:
static JS::NonnullGCPtr<Selection> create(JS::NonnullGCPtr<JS::Realm>, JS::NonnullGCPtr<DOM::Document>);
static WebIDL::ExceptionOr<JS::NonnullGCPtr<Selection>> create(JS::NonnullGCPtr<JS::Realm>, JS::NonnullGCPtr<DOM::Document>);
virtual ~Selection() override;