mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 23:25:20 +00:00
AK+Tests+LibWeb: Make URL::complete_url() take a StringView
All it does is pass this to `URLParser::parse()` which takes a StringView, so we might as well take one here too.
This commit is contained in:
@@ -77,9 +77,9 @@ bool ParsingContext::in_quirks_mode() const
|
||||
}
|
||||
|
||||
// https://www.w3.org/TR/css-values-4/#relative-urls
|
||||
AK::URL ParsingContext::complete_url(DeprecatedString const& addr) const
|
||||
AK::URL ParsingContext::complete_url(StringView relative_url) const
|
||||
{
|
||||
return m_url.complete_url(addr);
|
||||
return m_url.complete_url(relative_url);
|
||||
}
|
||||
|
||||
Parser::Parser(ParsingContext const& context, StringView input, StringView encoding)
|
||||
|
||||
Reference in New Issue
Block a user