LibWeb: Use WebIDL types for IDL exposed attributes

This commit is contained in:
Kenneth Myhra 2025-05-07 12:43:03 +02:00 committed by Shannon Booth
commit 5b4644d198
Notes: github-actions[bot] 2025-05-08 14:13:09 +00:00
2 changed files with 5 additions and 4 deletions

View file

@ -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; }