LibWeb/CSS: Remove uneeded ExceptionOr use in CSSMath{Invert,Negate}
This commit is contained in:
parent
1022ec3b4a
commit
3cb428e76d
4 changed files with 4 additions and 4 deletions
|
|
@ -20,7 +20,7 @@ GC::Ref<CSSMathInvert> CSSMathInvert::create(JS::Realm& realm, NumericType type,
|
|||
}
|
||||
|
||||
// https://drafts.css-houdini.org/css-typed-om-1/#dom-cssmathinvert-cssmathinvert
|
||||
WebIDL::ExceptionOr<GC::Ref<CSSMathInvert>> CSSMathInvert::construct_impl(JS::Realm& realm, CSSNumberish value)
|
||||
GC::Ref<CSSMathInvert> CSSMathInvert::construct_impl(JS::Realm& realm, CSSNumberish value)
|
||||
{
|
||||
// The CSSMathInvert(arg) constructor is defined identically to the above, except that in the last step it returns
|
||||
// a new CSSMathInvert object.
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ class CSSMathInvert final : public CSSMathValue {
|
|||
|
||||
public:
|
||||
[[nodiscard]] static GC::Ref<CSSMathInvert> create(JS::Realm&, NumericType, GC::Ref<CSSNumericValue>);
|
||||
static WebIDL::ExceptionOr<GC::Ref<CSSMathInvert>> construct_impl(JS::Realm&, CSSNumberish);
|
||||
static GC::Ref<CSSMathInvert> construct_impl(JS::Realm&, CSSNumberish);
|
||||
|
||||
virtual ~CSSMathInvert() override;
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ GC::Ref<CSSMathNegate> CSSMathNegate::create(JS::Realm& realm, NumericType type,
|
|||
}
|
||||
|
||||
// https://drafts.css-houdini.org/css-typed-om-1/#dom-cssmathnegate-cssmathnegate
|
||||
WebIDL::ExceptionOr<GC::Ref<CSSMathNegate>> CSSMathNegate::construct_impl(JS::Realm& realm, CSSNumberish value)
|
||||
GC::Ref<CSSMathNegate> CSSMathNegate::construct_impl(JS::Realm& realm, CSSNumberish value)
|
||||
{
|
||||
// The CSSMathNegate(arg) constructor must, when called, perform the following steps:
|
||||
// 1. Replace arg with the result of rectifying a numberish value for arg.
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ class CSSMathNegate final : public CSSMathValue {
|
|||
|
||||
public:
|
||||
[[nodiscard]] static GC::Ref<CSSMathNegate> create(JS::Realm&, NumericType, GC::Ref<CSSNumericValue>);
|
||||
static WebIDL::ExceptionOr<GC::Ref<CSSMathNegate>> construct_impl(JS::Realm&, CSSNumberish);
|
||||
static GC::Ref<CSSMathNegate> construct_impl(JS::Realm&, CSSNumberish);
|
||||
|
||||
virtual ~CSSMathNegate() override;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue