mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
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:
parent
523433d57d
commit
c61fa1d7aa
Notes:
github-actions[bot]
2025-11-05 17:28:52 +00:00
Author: https://github.com/trflynn89
Commit: c61fa1d7aa
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6708
2 changed files with 18 additions and 13 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue