mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:37:46 +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
|
@ -16,14 +16,14 @@ class CSSImportRule : public CSSRule {
|
|||
AK_MAKE_NONMOVABLE(CSSImportRule);
|
||||
|
||||
public:
|
||||
static NonnullRefPtr<CSSImportRule> create(URL url)
|
||||
static NonnullRefPtr<CSSImportRule> create(AK::URL url)
|
||||
{
|
||||
return adopt_ref(*new CSSImportRule(move(url)));
|
||||
}
|
||||
|
||||
~CSSImportRule();
|
||||
|
||||
const URL& url() const { return m_url; }
|
||||
const AK::URL& url() const { return m_url; }
|
||||
|
||||
bool has_import_result() const { return !m_style_sheet.is_null(); }
|
||||
RefPtr<CSSStyleSheet> loaded_style_sheet() { return m_style_sheet; }
|
||||
|
@ -34,9 +34,9 @@ public:
|
|||
virtual Type type() const { return Type::Import; };
|
||||
|
||||
private:
|
||||
explicit CSSImportRule(URL);
|
||||
explicit CSSImportRule(AK::URL);
|
||||
|
||||
URL m_url;
|
||||
AK::URL m_url;
|
||||
RefPtr<CSSStyleSheet> m_style_sheet;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue