diff --git a/Libraries/LibWeb/HTML/HTMLFieldSetElement.cpp b/Libraries/LibWeb/HTML/HTMLFieldSetElement.cpp
index b50365d9848..df207043eb3 100644
--- a/Libraries/LibWeb/HTML/HTMLFieldSetElement.cpp
+++ b/Libraries/LibWeb/HTML/HTMLFieldSetElement.cpp
@@ -83,7 +83,7 @@ Layout::FieldSetBox* HTMLFieldSetElement::layout_node()
return static_cast(Node::layout_node());
}
-JS::GCPtr HTMLFieldSetElement::create_layout_node(CSS::StyleProperties style)
+GC::Ptr HTMLFieldSetElement::create_layout_node(CSS::StyleProperties style)
{
return heap().allocate(document(), *this, style);
}
diff --git a/Libraries/LibWeb/HTML/HTMLFieldSetElement.h b/Libraries/LibWeb/HTML/HTMLFieldSetElement.h
index 7781b84c8d2..5286791c58a 100644
--- a/Libraries/LibWeb/HTML/HTMLFieldSetElement.h
+++ b/Libraries/LibWeb/HTML/HTMLFieldSetElement.h
@@ -42,7 +42,7 @@ public:
virtual Optional default_role() const override { return ARIA::Role::group; }
- virtual JS::GCPtr create_layout_node(CSS::StyleProperties) override;
+ virtual GC::Ptr create_layout_node(CSS::StyleProperties) override;
Layout::FieldSetBox* layout_node();
Layout::FieldSetBox const* layout_node() const;
diff --git a/Libraries/LibWeb/HTML/HTMLLegendElement.cpp b/Libraries/LibWeb/HTML/HTMLLegendElement.cpp
index 5eae2aadca3..efa2fc53b75 100644
--- a/Libraries/LibWeb/HTML/HTMLLegendElement.cpp
+++ b/Libraries/LibWeb/HTML/HTMLLegendElement.cpp
@@ -40,7 +40,7 @@ HTMLFormElement* HTMLLegendElement::form()
return nullptr;
}
-JS::GCPtr HTMLLegendElement::create_layout_node(CSS::StyleProperties style)
+GC::Ptr HTMLLegendElement::create_layout_node(CSS::StyleProperties style)
{
return heap().allocate(document(), *this, move(style));
}
diff --git a/Libraries/LibWeb/HTML/HTMLLegendElement.h b/Libraries/LibWeb/HTML/HTMLLegendElement.h
index e0157d926aa..6138d3a1865 100644
--- a/Libraries/LibWeb/HTML/HTMLLegendElement.h
+++ b/Libraries/LibWeb/HTML/HTMLLegendElement.h
@@ -20,7 +20,7 @@ public:
HTMLFormElement* form();
- virtual JS::GCPtr create_layout_node(CSS::StyleProperties) override;
+ virtual GC::Ptr create_layout_node(CSS::StyleProperties) override;
Layout::LegendBox* layout_node();
Layout::LegendBox const* layout_node() const;
diff --git a/Libraries/LibWeb/Layout/FieldSetBox.cpp b/Libraries/LibWeb/Layout/FieldSetBox.cpp
index 4394ae3f5cf..ab28b8e6164 100644
--- a/Libraries/LibWeb/Layout/FieldSetBox.cpp
+++ b/Libraries/LibWeb/Layout/FieldSetBox.cpp
@@ -10,7 +10,7 @@
namespace Web::Layout {
-JS_DEFINE_ALLOCATOR(FieldSetBox);
+GC_DEFINE_ALLOCATOR(FieldSetBox);
FieldSetBox::FieldSetBox(DOM::Document& document, DOM::Element& element, CSS::StyleProperties style)
: BlockContainer(document, &element, move(style))
diff --git a/Libraries/LibWeb/Layout/FieldSetBox.h b/Libraries/LibWeb/Layout/FieldSetBox.h
index c03e933f41e..320bb9a24a2 100644
--- a/Libraries/LibWeb/Layout/FieldSetBox.h
+++ b/Libraries/LibWeb/Layout/FieldSetBox.h
@@ -8,11 +8,12 @@
#include
#include
+
namespace Web::Layout {
class FieldSetBox final : public BlockContainer {
- JS_CELL(FieldSetBox, BlockContainer);
- JS_DECLARE_ALLOCATOR(FieldSetBox);
+ GC_CELL(FieldSetBox, BlockContainer);
+ GC_DECLARE_ALLOCATOR(FieldSetBox);
public:
FieldSetBox(DOM::Document&, DOM::Element&, CSS::StyleProperties);
diff --git a/Libraries/LibWeb/Layout/LegendBox.cpp b/Libraries/LibWeb/Layout/LegendBox.cpp
index 12590c3fe03..32a353857ec 100644
--- a/Libraries/LibWeb/Layout/LegendBox.cpp
+++ b/Libraries/LibWeb/Layout/LegendBox.cpp
@@ -8,7 +8,7 @@
namespace Web::Layout {
-JS_DEFINE_ALLOCATOR(LegendBox);
+GC_DEFINE_ALLOCATOR(LegendBox);
LegendBox::LegendBox(DOM::Document& document, DOM::Element& element, CSS::StyleProperties style)
: BlockContainer(document, &element, move(style))
diff --git a/Libraries/LibWeb/Layout/LegendBox.h b/Libraries/LibWeb/Layout/LegendBox.h
index c5e3faf6c6e..b12c866fa64 100644
--- a/Libraries/LibWeb/Layout/LegendBox.h
+++ b/Libraries/LibWeb/Layout/LegendBox.h
@@ -11,8 +11,8 @@
namespace Web::Layout {
class LegendBox final : public BlockContainer {
- JS_CELL(LegendBox, BlockContainer);
- JS_DECLARE_ALLOCATOR(LegendBox);
+ GC_CELL(LegendBox, BlockContainer);
+ GC_DECLARE_ALLOCATOR(LegendBox);
public:
LegendBox(DOM::Document&, DOM::Element&, CSS::StyleProperties);