mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 06:38:10 +00:00
LibWeb: Make factory method of SVG::SVGLength fallible
This commit is contained in:
parent
bfc8cbcf3b
commit
71316614b8
7 changed files with 45 additions and 45 deletions
|
@ -16,7 +16,7 @@ class SVGLength : public Bindings::PlatformObject {
|
|||
WEB_PLATFORM_OBJECT(SVGLength, Bindings::PlatformObject);
|
||||
|
||||
public:
|
||||
static JS::NonnullGCPtr<SVGLength> create(JS::Realm&, u8 unit_type, float value);
|
||||
static WebIDL::ExceptionOr<JS::NonnullGCPtr<SVGLength>> create(JS::Realm&, u8 unit_type, float value);
|
||||
virtual ~SVGLength() override;
|
||||
|
||||
u8 unit_type() const { return m_unit_type; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue