mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:17:36 +00:00
LibWeb: Change Document::parse_url to accept a StringView
There's no need for this to require a DeprecatedString - the method it wraps around already only expects a StringView. This allows passing a String instance without any conversion.
This commit is contained in:
parent
7fa8fae786
commit
5bc386cc96
2 changed files with 2 additions and 2 deletions
|
@ -811,7 +811,7 @@ AK::URL Document::base_url() const
|
|||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/urls-and-fetching.html#parse-a-url
|
||||
AK::URL Document::parse_url(DeprecatedString const& url) const
|
||||
AK::URL Document::parse_url(StringView url) const
|
||||
{
|
||||
// FIXME: Pass in document's character encoding.
|
||||
return base_url().complete_url(url);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue