diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-09-13 00:33:23 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-13 01:43:10 +0200 |
commit | 4629f2e4ad0640087d48e9e427e117620b09d7e8 (patch) | |
tree | 55f77b9b91c9dba677a7fd7e4b512fc75a49f27b /Userland/Libraries/LibWeb/HTML/HTMLCanvasElement.cpp | |
parent | 2b78e227f2bba96ebdf10f5aa0a83e0c9fd022cb (diff) | |
download | serenity-4629f2e4ad0640087d48e9e427e117620b09d7e8.zip |
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.
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/HTMLCanvasElement.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/HTMLCanvasElement.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLCanvasElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLCanvasElement.cpp index 857887da64..cabbf54f75 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLCanvasElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLCanvasElement.cpp @@ -92,7 +92,7 @@ String HTMLCanvasElement::to_data_url(const String& type, [[maybe_unused]] Optio if (type != "image/png") return {}; auto encoded_bitmap = Gfx::PNGWriter::encode(*m_bitmap); - return URL::create_with_data(type, encode_base64(encoded_bitmap), true).to_string(); + return AK::URL::create_with_data(type, encode_base64(encoded_bitmap), true).to_string(); } } |