mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 16:19:23 +00:00
LibWeb: Use WebIDL types for IDL exposed attributes
This commit is contained in:
parent
306c7b8211
commit
5b4644d198
Notes:
github-actions[bot]
2025-05-08 14:13:09 +00:00
Author: https://github.com/kennethmyhra
Commit: 5b4644d198
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4596
Reviewed-by: https://github.com/shannonbooth ✅
2 changed files with 5 additions and 4 deletions
|
@ -10,6 +10,7 @@
|
|||
#include <LibGfx/Forward.h>
|
||||
#include <LibWeb/Bindings/ImageDataPrototype.h>
|
||||
#include <LibWeb/Bindings/PlatformObject.h>
|
||||
#include <LibWeb/WebIDL/Types.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
|
@ -30,8 +31,8 @@ public:
|
|||
|
||||
virtual ~ImageData() override;
|
||||
|
||||
unsigned width() const;
|
||||
unsigned height() const;
|
||||
WebIDL::UnsignedLong width() const;
|
||||
WebIDL::UnsignedLong height() const;
|
||||
|
||||
Gfx::Bitmap& bitmap() { return m_bitmap; }
|
||||
Gfx::Bitmap const& bitmap() const { return m_bitmap; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue