mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 22:55:23 +00:00
LibWeb: Make HTML::ImageRequest GC allocated
This commit is contained in:
committed by
Andreas Kling
parent
333949894e
commit
bbfedf2e5a
@@ -17,9 +17,12 @@
|
||||
namespace Web::HTML {
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/images.html#image-request
|
||||
class ImageRequest : public RefCounted<ImageRequest> {
|
||||
class ImageRequest final : public JS::Cell {
|
||||
JS_CELL(ImageRequest, JS::Cell);
|
||||
|
||||
public:
|
||||
static ErrorOr<NonnullRefPtr<ImageRequest>> create(Page&);
|
||||
[[nodiscard]] static JS::NonnullGCPtr<ImageRequest> create(JS::Realm&, Page&);
|
||||
|
||||
~ImageRequest();
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/images.html#img-req-state
|
||||
|
||||
Reference in New Issue
Block a user