LibWeb: Pass the HTMLLinkElement fetched resource around as a ByteBuffer

Instead of passing around a large variant, which can only contain a
ByteBuffer, let's extract the ByteBuffer ahead of time and pass that
around.
This commit is contained in:
Timothy Flynn 2025-11-05 07:17:09 -05:00 committed by Andreas Kling
parent 523433d57d
commit c61fa1d7aa
Notes: github-actions[bot] 2025-11-05 17:28:52 +00:00
2 changed files with 18 additions and 13 deletions

View file

@ -139,9 +139,9 @@ private:
bool linked_resource_fetch_setup_steps(Fetch::Infrastructure::Request&);
bool stylesheet_linked_resource_fetch_setup_steps(Fetch::Infrastructure::Request&);
void process_linked_resource(bool success, Fetch::Infrastructure::Response const&, Variant<Empty, Fetch::Infrastructure::FetchAlgorithms::ConsumeBodyFailureTag, ByteBuffer>);
void process_linked_resource(bool success, Fetch::Infrastructure::Response const&, ByteBuffer);
void process_icon_resource();
void process_stylesheet_resource(bool success, Fetch::Infrastructure::Response const&, Variant<Empty, Fetch::Infrastructure::FetchAlgorithms::ConsumeBodyFailureTag, ByteBuffer>);
void process_stylesheet_resource(bool success, Fetch::Infrastructure::Response const&, ByteBuffer);
struct Relationship {
enum {