diff options
author | Andreas Kling <kling@serenityos.org> | 2020-06-23 13:33:03 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-06-23 14:28:45 +0200 |
commit | 4c00cae4b9d6dca352aa5baa2df5a8b2d24c9a48 (patch) | |
tree | ae6e7b439ec0b2da0cf28e2bd5a12fc53952fd7e | |
parent | 805123ab3d4a4afeacfd5e61b305ba1dcb056a1b (diff) | |
download | serenity-4c00cae4b9d6dca352aa5baa2df5a8b2d24c9a48.zip |
LibWeb: Decode CSS image values out-of-process as well
-rw-r--r-- | Libraries/LibWeb/CSS/StyleValue.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Libraries/LibWeb/CSS/StyleValue.cpp b/Libraries/LibWeb/CSS/StyleValue.cpp index 35c1d17add..c49e56a4c1 100644 --- a/Libraries/LibWeb/CSS/StyleValue.cpp +++ b/Libraries/LibWeb/CSS/StyleValue.cpp @@ -25,7 +25,6 @@ */ #include <AK/ByteBuffer.h> -#include <LibGfx/Bitmap.h> #include <LibGfx/PNGLoader.h> #include <LibGfx/Palette.h> #include <LibWeb/CSS/StyleValue.h> @@ -302,10 +301,7 @@ void ImageStyleValue::resource_did_load() { if (!m_document) return; - // FIXME: Use the shared decoder from ImageResource! - m_bitmap = Gfx::load_png_from_memory(resource()->encoded_data().data(), resource()->encoded_data().size()); - if (!m_bitmap) - return; + m_bitmap = resource()->bitmap(); // FIXME: Do less than a full repaint if possible? if (m_document->frame()) m_document->frame()->set_needs_display({}); |