mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:58:11 +00:00
LibWeb: Add the Web::URL namespace and move URLEncoder to it
This namespace will be used for all interfaces defined in the URL specification, like URL and URLSearchParams. This has the unfortunate side-effect of requiring us to use the fully qualified AK::URL name whenever we want to refer to the AK class, so this commit also fixes all such references.
This commit is contained in:
parent
2b78e227f2
commit
4629f2e4ad
54 changed files with 236 additions and 225 deletions
|
@ -57,7 +57,7 @@
|
|||
|
||||
namespace Web::DOM {
|
||||
|
||||
Document::Document(const URL& url)
|
||||
Document::Document(const AK::URL& url)
|
||||
: ParentNode(*this, NodeType::DOCUMENT_NODE)
|
||||
, m_style_resolver(make<CSS::StyleResolver>(*this))
|
||||
, m_style_sheets(CSS::StyleSheetList::create(*this))
|
||||
|
@ -383,7 +383,7 @@ CSS::Repeat Document::background_repeat_y() const
|
|||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/urls-and-fetching.html#parse-a-url
|
||||
URL Document::parse_url(String const& url) const
|
||||
AK::URL Document::parse_url(String const& url) const
|
||||
{
|
||||
// FIXME: Make sure we do this according to spec.
|
||||
return m_url.complete_url(url);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue