mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-15 23:09:05 +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
|
@ -143,12 +143,12 @@ void ImageData::visit_edges(Cell::Visitor& visitor)
|
||||||
visitor.visit(m_data);
|
visitor.visit(m_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned ImageData::width() const
|
WebIDL::UnsignedLong ImageData::width() const
|
||||||
{
|
{
|
||||||
return m_bitmap->width();
|
return m_bitmap->width();
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned ImageData::height() const
|
WebIDL::UnsignedLong ImageData::height() const
|
||||||
{
|
{
|
||||||
return m_bitmap->height();
|
return m_bitmap->height();
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
#include <LibGfx/Forward.h>
|
#include <LibGfx/Forward.h>
|
||||||
#include <LibWeb/Bindings/ImageDataPrototype.h>
|
#include <LibWeb/Bindings/ImageDataPrototype.h>
|
||||||
#include <LibWeb/Bindings/PlatformObject.h>
|
#include <LibWeb/Bindings/PlatformObject.h>
|
||||||
|
#include <LibWeb/WebIDL/Types.h>
|
||||||
|
|
||||||
namespace Web::HTML {
|
namespace Web::HTML {
|
||||||
|
|
||||||
|
@ -30,8 +31,8 @@ public:
|
||||||
|
|
||||||
virtual ~ImageData() override;
|
virtual ~ImageData() override;
|
||||||
|
|
||||||
unsigned width() const;
|
WebIDL::UnsignedLong width() const;
|
||||||
unsigned height() const;
|
WebIDL::UnsignedLong height() const;
|
||||||
|
|
||||||
Gfx::Bitmap& bitmap() { return m_bitmap; }
|
Gfx::Bitmap& bitmap() { return m_bitmap; }
|
||||||
Gfx::Bitmap const& bitmap() const { return m_bitmap; }
|
Gfx::Bitmap const& bitmap() const { return m_bitmap; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue