LibWeb: Make factory methods of HTML::CanvasGradient fallible

This commit is contained in:
Kenneth Myhra 2023-02-15 08:46:39 +01:00 committed by Linus Groh
commit 2506666991
Notes: sideshowbarker 2024-07-17 05:23:40 +09:00
3 changed files with 8 additions and 8 deletions

View file

@ -17,8 +17,8 @@ class CanvasGradient final : public Bindings::PlatformObject {
public:
static WebIDL::ExceptionOr<JS::NonnullGCPtr<CanvasGradient>> create_radial(JS::Realm&, double x0, double y0, double r0, double x1, double y1, double r1);
static JS::NonnullGCPtr<CanvasGradient> create_linear(JS::Realm&, double x0, double y0, double x1, double y1);
static JS::NonnullGCPtr<CanvasGradient> create_conic(JS::Realm&, double start_angle, double x, double y);
static WebIDL::ExceptionOr<JS::NonnullGCPtr<CanvasGradient>> create_linear(JS::Realm&, double x0, double y0, double x1, double y1);
static WebIDL::ExceptionOr<JS::NonnullGCPtr<CanvasGradient>> create_conic(JS::Realm&, double start_angle, double x, double y);
WebIDL::ExceptionOr<void> add_color_stop(double offset, DeprecatedString const& color);