LibWeb: Port get_element_by_id from DeprecatedFlyString

We needed to keep the old versions of these functions around before all
of the IDL interfaces were ported over to new AK String, but now that is
done, we can remove the deprecated versions of these functions.
This commit is contained in:
Shannon Booth 2023-10-08 13:34:11 +13:00 committed by Tim Flynn
commit 48f367adbb
Notes: sideshowbarker 2024-07-17 05:18:58 +09:00
6 changed files with 12 additions and 22 deletions

View file

@ -115,7 +115,7 @@ JS::GCPtr<DOM::Element> SVGUseElement::referenced_element()
}
// FIXME: Support loading of external svg documents
return document().get_element_by_id(m_referenced_id.value());
return document().get_element_by_id(MUST(FlyString::from_utf8(m_referenced_id.value())));
}
// https://svgwg.org/svg2-draft/struct.html#UseShadowTree