mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:27:35 +00:00
LibWeb: Make factory method of HTML::CanvasRenderingContext2D fallible
This commit is contained in:
parent
2506666991
commit
b7c488e51e
3 changed files with 4 additions and 4 deletions
|
@ -52,7 +52,7 @@ class CanvasRenderingContext2D
|
|||
WEB_PLATFORM_OBJECT(CanvasRenderingContext2D, Bindings::PlatformObject);
|
||||
|
||||
public:
|
||||
static JS::NonnullGCPtr<CanvasRenderingContext2D> create(JS::Realm&, HTMLCanvasElement&);
|
||||
static WebIDL::ExceptionOr<JS::NonnullGCPtr<CanvasRenderingContext2D>> create(JS::Realm&, HTMLCanvasElement&);
|
||||
virtual ~CanvasRenderingContext2D() override;
|
||||
|
||||
virtual void fill_rect(float x, float y, float width, float height) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue