mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +00:00
LibWeb: Make HTML::ImageRequest GC allocated
This commit is contained in:
committed by
Andreas Kling
parent
333949894e
commit
bbfedf2e5a
@@ -19,9 +19,9 @@
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
ErrorOr<NonnullRefPtr<ImageRequest>> ImageRequest::create(Page& page)
|
||||
JS::NonnullGCPtr<ImageRequest> ImageRequest::create(JS::Realm& realm, Page& page)
|
||||
{
|
||||
return adopt_nonnull_ref_or_enomem(new (nothrow) ImageRequest(page));
|
||||
return realm.heap().allocate<ImageRequest>(realm, page);
|
||||
}
|
||||
|
||||
ImageRequest::ImageRequest(Page& page)
|
||||
|
||||
Reference in New Issue
Block a user