summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/StyleValues/TransformationStyleValue.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/StyleValues/TransformationStyleValue.h')
-rw-r--r--Userland/Libraries/LibWeb/CSS/StyleValues/TransformationStyleValue.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/StyleValues/TransformationStyleValue.h b/Userland/Libraries/LibWeb/CSS/StyleValues/TransformationStyleValue.h
index c7986a7df9..68bfbfba37 100644
--- a/Userland/Libraries/LibWeb/CSS/StyleValues/TransformationStyleValue.h
+++ b/Userland/Libraries/LibWeb/CSS/StyleValues/TransformationStyleValue.h
@@ -16,9 +16,9 @@ namespace Web::CSS {
class TransformationStyleValue final : public StyleValueWithDefaultOperators<TransformationStyleValue> {
public:
- static ValueComparingNonnullRefPtr<TransformationStyleValue> create(CSS::TransformFunction transform_function, StyleValueVector&& values)
+ static ErrorOr<ValueComparingNonnullRefPtr<TransformationStyleValue>> create(CSS::TransformFunction transform_function, StyleValueVector&& values)
{
- return adopt_ref(*new TransformationStyleValue(transform_function, move(values)));
+ return adopt_nonnull_ref_or_enomem(new (nothrow) TransformationStyleValue(transform_function, move(values)));
}
virtual ~TransformationStyleValue() override = default;