mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 02:09:24 +00:00
LibWeb: Make factory methods of HTML::CanvasGradient fallible
This commit is contained in:
parent
63b69f3672
commit
2506666991
Notes:
sideshowbarker
2024-07-17 05:23:40 +09:00
Author: https://github.com/kennethmyhra
Commit: 2506666991
Pull-request: https://github.com/SerenityOS/serenity/pull/17491
Reviewed-by: https://github.com/linusg ✅
3 changed files with 8 additions and 8 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue