Skip to content

Truly independent web browser

LibWeb: Root the components of a new CSSTransformValue

Shannon Boothc21604f73d66
diff --git a/Libraries/LibWeb/CSS/CSSTransformValue.cpp b/Libraries/LibWeb/CSS/CSSTransformValue.cpp
index 03dbb5c0187..5e71b523102 100644
--- a/Libraries/LibWeb/CSS/CSSTransformValue.cpp
+++ b/Libraries/LibWeb/CSS/CSSTransformValue.cpp
@@ -21,7 +21,7 @@ GC_DEFINE_ALLOCATOR(CSSTransformValue);
GC::Ref<CSSTransformValue> CSSTransformValue::create(ReadonlySpan<GC::Ref<CSSTransformComponent>> transforms)
{
- Vector<GC::Ref<CSSTransformComponent>> converted_transforms;
+ GC::RootVector<GC::Ref<CSSTransformComponent>> converted_transforms;
converted_transforms.ensure_capacity(transforms.size());
for (auto const& transform : transforms)
converted_transforms.append(transform);