1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:57:35 +00:00

Everywhere: Use unqualified AK::URL

Now possible in LibWeb now that there is no longer a Web::URL.
This commit is contained in:
Shannon Booth 2024-02-11 20:15:39 +13:00 committed by Andreas Kling
parent f9e5b43b7a
commit 9ce8189f21
156 changed files with 471 additions and 471 deletions

View file

@ -183,33 +183,33 @@ public:
: m_value(color)
{
}
SVGPaint(AK::URL const& url)
SVGPaint(URL const& url)
: m_value(url)
{
}
bool is_color() const { return m_value.has<Color>(); }
bool is_url() const { return m_value.has<AK::URL>(); }
bool is_url() const { return m_value.has<URL>(); }
Color as_color() const { return m_value.get<Color>(); }
AK::URL const& as_url() const { return m_value.get<AK::URL>(); }
URL const& as_url() const { return m_value.get<URL>(); }
private:
Variant<AK::URL, Color> m_value;
Variant<URL, Color> m_value;
};
// https://drafts.fxtf.org/css-masking-1/#typedef-mask-reference
class MaskReference {
public:
// TODO: Support other mask types.
MaskReference(AK::URL const& url)
MaskReference(URL const& url)
: m_url(url)
{
}
AK::URL const& url() const { return m_url; }
URL const& url() const { return m_url; }
private:
AK::URL m_url;
URL m_url;
};
struct BackgroundLayerData {