LibWeb: Add SVGURIReference

This commit is contained in:
Luke Wilde 2023-11-14 00:20:44 +00:00 committed by Andreas Kling
parent 55646893d8
commit 968bec9844
Notes: sideshowbarker 2024-07-16 23:44:30 +09:00
4 changed files with 65 additions and 2 deletions

View file

@ -33,6 +33,12 @@ void SVGTextPathElement::initialize(JS::Realm& realm)
set_prototype(&Bindings::ensure_web_prototype<Bindings::SVGTextPathElementPrototype>(realm, "SVGTextPathElement"_fly_string));
}
void SVGTextPathElement::visit_edges(Cell::Visitor& visitor)
{
Base::visit_edges(visitor);
SVGURIReferenceMixin::visit_edges(visitor);
}
JS::GCPtr<Layout::Node> SVGTextPathElement::create_layout_node(NonnullRefPtr<CSS::StyleProperties> style)
{
return heap().allocate_without_realm<Layout::SVGTextPathBox>(document(), *this, move(style));