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:
parent
e3e281addd
commit
0791195843
4 changed files with 21 additions and 21 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue