mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-04 23:30:20 +00:00
LibGC+Everywhere: Factor out a LibGC from LibJS
Resulting in a massive rename across almost everywhere! Alongside the namespace change, we now have the following names: * JS::NonnullGCPtr -> GC::Ref * JS::GCPtr -> GC::Ptr * JS::HeapFunction -> GC::Function * JS::CellImpl -> GC::Cell * JS::Handle -> GC::Root
This commit is contained in:
parent
ce23efc5f6
commit
f87041bf3a
Notes:
github-actions[bot]
2024-11-15 13:50:17 +00:00
Author: https://github.com/shannonbooth
Commit: f87041bf3a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2345
1722 changed files with 9939 additions and 9906 deletions
|
@ -23,11 +23,11 @@ namespace Web::Painting {
|
|||
|
||||
class PaintableBox : public Paintable
|
||||
, public ClippableAndScrollable {
|
||||
JS_CELL(PaintableBox, Paintable);
|
||||
GC_CELL(PaintableBox, Paintable);
|
||||
|
||||
public:
|
||||
static JS::NonnullGCPtr<PaintableBox> create(Layout::Box const&);
|
||||
static JS::NonnullGCPtr<PaintableBox> create(Layout::InlineNode const&);
|
||||
static GC::Ref<PaintableBox> create(Layout::Box const&);
|
||||
static GC::Ref<PaintableBox> create(Layout::InlineNode const&);
|
||||
virtual ~PaintableBox();
|
||||
|
||||
virtual void before_paint(PaintContext&, PaintPhase) const override;
|
||||
|
@ -310,11 +310,11 @@ private:
|
|||
};
|
||||
|
||||
class PaintableWithLines : public PaintableBox {
|
||||
JS_CELL(PaintableWithLines, PaintableBox);
|
||||
GC_CELL(PaintableWithLines, PaintableBox);
|
||||
|
||||
public:
|
||||
static JS::NonnullGCPtr<PaintableWithLines> create(Layout::BlockContainer const&);
|
||||
static JS::NonnullGCPtr<PaintableWithLines> create(Layout::InlineNode const&, size_t line_index);
|
||||
static GC::Ref<PaintableWithLines> create(Layout::BlockContainer const&);
|
||||
static GC::Ref<PaintableWithLines> create(Layout::InlineNode const&, size_t line_index);
|
||||
virtual ~PaintableWithLines() override;
|
||||
|
||||
Layout::NodeWithStyleAndBoxModelMetrics const& layout_node_with_style_and_box_metrics() const;
|
||||
|
@ -347,7 +347,7 @@ public:
|
|||
{
|
||||
Base::visit_edges(visitor);
|
||||
for (auto& fragment : m_fragments)
|
||||
visitor.visit(JS::NonnullGCPtr { fragment.layout_node() });
|
||||
visitor.visit(GC::Ref { fragment.layout_node() });
|
||||
}
|
||||
|
||||
virtual void resolve_paint_properties() override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue