1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 17:44:56 +09:00

LibWeb: Put PaintableWithLines in dedicated GC allocator

This commit is contained in:
Andreas Kling 2025-04-21 01:09:46 +02:00 committed by Andreas Kling
parent 20c6c4e359
commit c394344e7d
Notes: github-actions[bot] 2025-04-22 10:11:05 +00:00
2 changed files with 3 additions and 0 deletions

View file

@ -32,6 +32,8 @@
namespace Web::Painting {
GC_DEFINE_ALLOCATOR(PaintableWithLines);
bool g_paint_viewport_scrollbars = true;
GC::Ref<PaintableWithLines> PaintableWithLines::create(Layout::BlockContainer const& block_container)

View file

@ -317,6 +317,7 @@ private:
class PaintableWithLines : public PaintableBox {
GC_CELL(PaintableWithLines, PaintableBox);
GC_DECLARE_ALLOCATOR(PaintableWithLines);
public:
static GC::Ref<PaintableWithLines> create(Layout::BlockContainer const&);