mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-28 20:29:42 +00:00
LibURL+LibWeb: Port URL::complete_url to Optional
Removing one more source of the URL::is_valid API.
This commit is contained in:
committed by
Tim Ledbetter
parent
356728b1e0
commit
53826995f6
@@ -25,7 +25,9 @@ GC::Ptr<SVGGeometryElement const> SVGTextPathElement::path_or_shape() const
|
||||
if (!href.has_value())
|
||||
return {};
|
||||
auto url = document().url().complete_url(*href);
|
||||
return try_resolve_url_to<SVGGeometryElement const>(url);
|
||||
if (!url.has_value())
|
||||
return {};
|
||||
return try_resolve_url_to<SVGGeometryElement const>(*url);
|
||||
}
|
||||
|
||||
void SVGTextPathElement::initialize(JS::Realm& realm)
|
||||
|
||||
Reference in New Issue
Block a user