mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:17:36 +00:00
LibWeb: Remove unecessary dependence on Window from HTML classes
These classes only needed Window to get at its realm. Pass a realm directly to construct HTML classes.
This commit is contained in:
parent
a2ccb00e1d
commit
f0c5f77f99
122 changed files with 334 additions and 317 deletions
|
@ -15,7 +15,7 @@ class ImageData final : public Bindings::PlatformObject {
|
|||
WEB_PLATFORM_OBJECT(ImageData, Bindings::PlatformObject);
|
||||
|
||||
public:
|
||||
static JS::GCPtr<ImageData> create_with_size(HTML::Window&, int width, int height);
|
||||
static JS::GCPtr<ImageData> create_with_size(JS::Realm&, int width, int height);
|
||||
|
||||
virtual ~ImageData() override;
|
||||
|
||||
|
@ -29,7 +29,7 @@ public:
|
|||
const JS::Uint8ClampedArray* data() const;
|
||||
|
||||
private:
|
||||
explicit ImageData(HTML::Window&, NonnullRefPtr<Gfx::Bitmap>, JS::NonnullGCPtr<JS::Uint8ClampedArray>);
|
||||
ImageData(JS::Realm&, NonnullRefPtr<Gfx::Bitmap>, JS::NonnullGCPtr<JS::Uint8ClampedArray>);
|
||||
|
||||
virtual void visit_edges(Cell::Visitor&) override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue