mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:38:11 +00:00
LibWeb: Make factory method of HTML::TextMetrics fallible
This commit is contained in:
parent
d9845bb24b
commit
c5de2c3348
3 changed files with 5 additions and 4 deletions
|
@ -14,7 +14,7 @@ class TextMetrics : public Bindings::PlatformObject {
|
|||
WEB_PLATFORM_OBJECT(TextMetrics, Bindings::PlatformObject);
|
||||
|
||||
public:
|
||||
static JS::NonnullGCPtr<TextMetrics> create(JS::Realm&);
|
||||
static WebIDL::ExceptionOr<JS::NonnullGCPtr<TextMetrics>> create(JS::Realm&);
|
||||
|
||||
virtual ~TextMetrics() override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue