summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/Canvas
diff options
context:
space:
mode:
authorKenneth Myhra <kennethmyhra@gmail.com>2023-02-15 08:46:39 +0100
committerLinus Groh <mail@linusgroh.de>2023-02-18 00:52:47 +0100
commit250666699119ddc67e2a2757998843bcb847f074 (patch)
tree8e98c489d753826a3a181d09cc643b11bddde072 /Userland/Libraries/LibWeb/HTML/Canvas
parent63b69f3672f44a9bae411a6a5ba924564d24c98d (diff)
downloadserenity-250666699119ddc67e2a2757998843bcb847f074.zip
LibWeb: Make factory methods of HTML::CanvasGradient fallible
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/Canvas')
-rw-r--r--Userland/Libraries/LibWeb/HTML/Canvas/CanvasFillStrokeStyles.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/Canvas/CanvasFillStrokeStyles.h b/Userland/Libraries/LibWeb/HTML/Canvas/CanvasFillStrokeStyles.h
index ae0492b5f8..f086c3752d 100644
--- a/Userland/Libraries/LibWeb/HTML/Canvas/CanvasFillStrokeStyles.h
+++ b/Userland/Libraries/LibWeb/HTML/Canvas/CanvasFillStrokeStyles.h
@@ -65,13 +65,13 @@ public:
JS::NonnullGCPtr<CanvasGradient> create_linear_gradient(double x0, double y0, double x1, double y1)
{
auto& realm = static_cast<IncludingClass&>(*this).realm();
- return CanvasGradient::create_linear(realm, x0, y0, x1, y1);
+ return CanvasGradient::create_linear(realm, x0, y0, x1, y1).release_value_but_fixme_should_propagate_errors();
}
JS::NonnullGCPtr<CanvasGradient> create_conic_gradient(double start_angle, double x, double y)
{
auto& realm = static_cast<IncludingClass&>(*this).realm();
- return CanvasGradient::create_conic(realm, start_angle, x, y);
+ return CanvasGradient::create_conic(realm, start_angle, x, y).release_value_but_fixme_should_propagate_errors();
}
WebIDL::ExceptionOr<JS::GCPtr<CanvasPattern>> create_pattern(CanvasImageSource const& image, StringView repetition)