mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-28 14:02:51 +00:00
LibWeb: Add SVGURIReference
This commit is contained in:
parent
55646893d8
commit
968bec9844
Notes:
sideshowbarker
2024-07-16 23:44:30 +09:00
Author: https://github.com/Lubrsi
Commit: 968bec9844
Pull-request: https://github.com/SerenityOS/serenity/pull/21932
Reviewed-by: https://github.com/awesomekling
4 changed files with 65 additions and 2 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue