LibWeb: Make factory method of Geometry::DOMRectReadOnly fallible

This commit is contained in:
Kenneth Myhra 2023-02-19 18:31:05 +01:00 committed by Andreas Kling
commit 07db02cd2c
Notes: sideshowbarker 2024-07-17 06:54:15 +09:00
2 changed files with 4 additions and 3 deletions

View file

@ -17,7 +17,7 @@ class DOMRectReadOnly : public Bindings::PlatformObject {
WEB_PLATFORM_OBJECT(DOMRectReadOnly, Bindings::PlatformObject);
public:
static JS::NonnullGCPtr<DOMRectReadOnly> construct_impl(JS::Realm&, double x = 0, double y = 0, double width = 0, double height = 0);
static WebIDL::ExceptionOr<JS::NonnullGCPtr<DOMRectReadOnly>> construct_impl(JS::Realm&, double x = 0, double y = 0, double width = 0, double height = 0);
virtual ~DOMRectReadOnly() override;