mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 00:17:46 +00:00
LibWeb: Make factory method of CSS::Screen fallible
This commit is contained in:
parent
1e24126004
commit
57c34e6325
2 changed files with 3 additions and 3 deletions
|
@ -17,7 +17,7 @@ class Screen final : public Bindings::PlatformObject {
|
|||
WEB_PLATFORM_OBJECT(Screen, Bindings::PlatformObject);
|
||||
|
||||
public:
|
||||
static JS::NonnullGCPtr<Screen> create(HTML::Window&);
|
||||
static WebIDL::ExceptionOr<JS::NonnullGCPtr<Screen>> create(HTML::Window&);
|
||||
|
||||
i32 width() const { return screen_rect().width(); }
|
||||
i32 height() const { return screen_rect().height(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue