mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-18 23:42:17 +00:00
LibWeb: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR()
This commit is contained in:
parent
d62c0fcbdc
commit
31341b280a
Notes:
sideshowbarker
2024-07-17 21:16:31 +09:00
Author: https://github.com/mattco98
Commit: 31341b280a
Pull-request: https://github.com/SerenityOS/serenity/pull/23878
Issue: https://github.com/SerenityOS/serenity/issues/23805
Reviewed-by: https://github.com/awesomekling
122 changed files with 199 additions and 5 deletions
|
@ -10,6 +10,8 @@
|
|||
|
||||
namespace Web::Fetch::Infrastructure {
|
||||
|
||||
JS_DEFINE_ALLOCATOR(FetchTimingInfo);
|
||||
|
||||
FetchTimingInfo::FetchTimingInfo() = default;
|
||||
|
||||
JS::NonnullGCPtr<FetchTimingInfo> FetchTimingInfo::create(JS::VM& vm)
|
||||
|
|
|
@ -19,6 +19,7 @@ namespace Web::Fetch::Infrastructure {
|
|||
// https://fetch.spec.whatwg.org/#fetch-timing-info
|
||||
class FetchTimingInfo : public JS::Cell {
|
||||
JS_CELL(FetchTimingInfo, JS::Cell);
|
||||
JS_DECLARE_ALLOCATOR(FetchTimingInfo);
|
||||
|
||||
public:
|
||||
[[nodiscard]] static JS::NonnullGCPtr<FetchTimingInfo> create(JS::VM&);
|
||||
|
|
|
@ -25,6 +25,8 @@
|
|||
|
||||
namespace Web::Fetch::Infrastructure {
|
||||
|
||||
JS_DEFINE_ALLOCATOR(HeaderList);
|
||||
|
||||
template<typename T>
|
||||
requires(IsSameIgnoringCV<T, u8>) struct CaseInsensitiveBytesTraits : public Traits<Span<T>> {
|
||||
static constexpr bool equals(Span<T> const& a, Span<T> const& b)
|
||||
|
|
|
@ -14,8 +14,8 @@
|
|||
#include <AK/String.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <LibJS/Forward.h>
|
||||
#include <LibJS/Heap/Cell.h>
|
||||
#include <LibJS/Heap/GCPtr.h>
|
||||
#include <LibJS/Heap/Heap.h>
|
||||
#include <LibWeb/MimeSniff/MimeType.h>
|
||||
|
||||
namespace Web::Fetch::Infrastructure {
|
||||
|
@ -35,6 +35,7 @@ class HeaderList final
|
|||
: public JS::Cell
|
||||
, Vector<Header> {
|
||||
JS_CELL(HeaderList, JS::Cell);
|
||||
JS_DECLARE_ALLOCATOR(HeaderList);
|
||||
|
||||
public:
|
||||
using Vector::begin;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue