1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:27:43 +00:00

LibWeb: Remove ImageLoader and ImageResource

The old image loading mechanism is no longer used, as everything has
been moved on top of HTML::ImageRequest! :^)
This commit is contained in:
Andreas Kling 2023-06-11 16:09:46 +02:00
parent a553fe055b
commit 2ebb3639aa
7 changed files with 0 additions and 465 deletions

View file

@ -9,7 +9,6 @@
#include <LibCore/MimeData.h>
#include <LibTextCodec/Decoder.h>
#include <LibWeb/HTML/HTMLImageElement.h>
#include <LibWeb/Loader/ImageResource.h>
#include <LibWeb/Loader/Resource.h>
#include <LibWeb/Loader/ResourceLoader.h>
#include <LibWeb/Platform/EventLoopPlugin.h>
@ -18,8 +17,6 @@ namespace Web {
NonnullRefPtr<Resource> Resource::create(Badge<ResourceLoader>, Type type, LoadRequest const& request)
{
if (type == Type::Image)
return adopt_ref(*new ImageResource(request));
return adopt_ref(*new Resource(type, request));
}