diff options
author | asynts <asynts@gmail.com> | 2021-01-17 18:17:00 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-22 22:14:30 +0100 |
commit | 3f23a58fa1a0de922e36d82adccfccfb78b4049f (patch) | |
tree | 04fecee8357ad30cf6bf03ac5cbc3fdf061bbe83 /Userland/Libraries/LibWeb/Loader/Resource.cpp | |
parent | 7d783d8b84f8c55fd30af867437734a732fcfc17 (diff) | |
download | serenity-3f23a58fa1a0de922e36d82adccfccfb78b4049f.zip |
Everywhere: Replace a bundle of dbg with dbgln.
These changes are arbitrarily divided into multiple commits to make it
easier to find potentially introduced bugs with git bisect.
Diffstat (limited to 'Userland/Libraries/LibWeb/Loader/Resource.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/Loader/Resource.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Userland/Libraries/LibWeb/Loader/Resource.cpp b/Userland/Libraries/LibWeb/Loader/Resource.cpp index 2cb6ebc52d..be5f38a5fd 100644 --- a/Userland/Libraries/LibWeb/Loader/Resource.cpp +++ b/Userland/Libraries/LibWeb/Loader/Resource.cpp @@ -24,6 +24,7 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include <AK/Debug.h> #include <AK/Function.h> #include <LibCore/MimeData.h> #include <LibWeb/HTML/HTMLImageElement.h> @@ -99,9 +100,7 @@ void Resource::did_load(Badge<ResourceLoader>, ReadonlyBytes data, const HashMap m_encoding = encoding_from_content_type(content_type.value()); m_mime_type = mime_type_from_content_type(content_type.value()); } else if (url().protocol() == "data" && !url().data_mime_type().is_empty()) { -#ifdef RESOURCE_DEBUG - dbg() << "This is a data URL with mime-type _" << url().data_mime_type() << "_"; -#endif + dbgln<debug_resource>("This is a data URL with mime-type _{}_", url().data_mime_type()); m_encoding = "utf-8"; // FIXME: This doesn't seem nice. m_mime_type = url().data_mime_type(); } else { |