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:
parent
20c6c4e359
commit
c394344e7d
Notes:
github-actions[bot]
2025-04-22 10:11:05 +00:00
Author: https://github.com/awesomekling
Commit: c394344e7d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4424
Reviewed-by: https://github.com/gmta
2 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue