|
@@ -17,7 +17,7 @@ class Screen final : public Bindings::PlatformObject {
|
|
WEB_PLATFORM_OBJECT(Screen, Bindings::PlatformObject);
|
|
WEB_PLATFORM_OBJECT(Screen, Bindings::PlatformObject);
|
|
|
|
|
|
public:
|
|
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 width() const { return screen_rect().width(); }
|
|
i32 height() const { return screen_rect().height(); }
|
|
i32 height() const { return screen_rect().height(); }
|