summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/SVG
diff options
context:
space:
mode:
authorKenneth Myhra <kennethmyhra@gmail.com>2023-02-19 18:07:00 +0100
committerAndreas Kling <kling@serenityos.org>2023-02-22 09:55:33 +0100
commit530ec85c4ab913d3c8ba87df8b13fce7e920767b (patch)
tree891c3cb066b2611c9cacfa8fbca60386d7f65ce7 /Userland/Libraries/LibWeb/SVG
parent459959b297892aa88e30be66a302a6bd00810e34 (diff)
downloadserenity-530ec85c4ab913d3c8ba87df8b13fce7e920767b.zip
LibWeb: Make factory method of Geometry::DOMPoint fallible
Diffstat (limited to 'Userland/Libraries/LibWeb/SVG')
-rw-r--r--Userland/Libraries/LibWeb/SVG/SVGGeometryElement.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/SVG/SVGGeometryElement.cpp b/Userland/Libraries/LibWeb/SVG/SVGGeometryElement.cpp
index 5af78482e8..b0962ec5d4 100644
--- a/Userland/Libraries/LibWeb/SVG/SVGGeometryElement.cpp
+++ b/Userland/Libraries/LibWeb/SVG/SVGGeometryElement.cpp
@@ -36,7 +36,7 @@ float SVGGeometryElement::get_total_length()
JS::NonnullGCPtr<Geometry::DOMPoint> SVGGeometryElement::get_point_at_length(float distance)
{
(void)distance;
- return Geometry::DOMPoint::construct_impl(realm(), 0, 0, 0, 0);
+ return Geometry::DOMPoint::construct_impl(realm(), 0, 0, 0, 0).release_value_but_fixme_should_propagate_errors();
}
}