1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 18:27:35 +00:00

LibWeb: Make factory methods of DOM::Range fallible

This commit is contained in:
Kenneth Myhra 2023-02-15 07:26:32 +01:00 committed by Linus Groh
parent e3e281addd
commit 0791195843
4 changed files with 21 additions and 21 deletions

View file

@ -26,10 +26,10 @@ class Range final : public AbstractRange {
WEB_PLATFORM_OBJECT(Range, AbstractRange);
public:
static JS::NonnullGCPtr<Range> create(Document&);
static JS::NonnullGCPtr<Range> create(HTML::Window&);
static JS::NonnullGCPtr<Range> create(Node& start_container, u32 start_offset, Node& end_container, u32 end_offset);
static JS::NonnullGCPtr<Range> construct_impl(JS::Realm&);
static WebIDL::ExceptionOr<JS::NonnullGCPtr<Range>> create(Document&);
static WebIDL::ExceptionOr<JS::NonnullGCPtr<Range>> create(HTML::Window&);
static WebIDL::ExceptionOr<JS::NonnullGCPtr<Range>> create(Node& start_container, u32 start_offset, Node& end_container, u32 end_offset);
static WebIDL::ExceptionOr<JS::NonnullGCPtr<Range>> construct_impl(JS::Realm&);
virtual ~Range() override;