1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:18:11 +00:00
serenity/Userland/Libraries/LibWeb/Loader
Andreas Kling d01b4327fa LibGfx: Improve ImageDecoder construction
Previously, ImageDecoder::create() would return a NonnullRefPtr and
could not "fail", although the returned decoder may be "invalid" which
you then had to check anyway.

The new interface looks like this:

    static RefPtr<Gfx::ImageDecoder> try_create(ReadonlyBytes);

This simplifies ImageDecoder since it no longer has to worry about its
validity. Client code gets slightly clearer as well.
2021-07-27 01:17:05 +02:00
..
ContentFilter.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
ContentFilter.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
CSSLoader.cpp LibWeb: Add context to new CSS parser, and deprecate the old one 2021-07-11 23:19:56 +02:00
CSSLoader.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
FrameLoader.cpp LibGfx: Improve ImageDecoder construction 2021-07-27 01:17:05 +02:00
FrameLoader.h LibWeb: Rename Web::Frame to Web::BrowsingContext 2021-05-30 12:39:53 +02:00
ImageLoader.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
ImageLoader.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
ImageResource.cpp LibGfx: Make Gfx::Bitmap::set_nonvolatile() report allocation failure 2021-07-25 14:39:25 +02:00
ImageResource.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
LoadRequest.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
LoadRequest.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Resource.cpp AK+Everywhere: Consolidate String::index_of() and String::find() 2021-05-24 11:59:18 +02:00
Resource.h LibWeb: Change Resource's m_encoding to Optional<String> 2021-05-18 21:02:07 +02:00
ResourceLoader.cpp LibProtocol: Use URL class in RequestClient::start_request argument 2021-06-06 16:00:11 +02:00
ResourceLoader.h LibWeb: Show "x86_64" in the user agent string on x86_64 :^) 2021-07-01 12:15:52 +02:00