mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-23 17:33:12 +00:00
LibWeb: Use forward-declarations of structured serialized types
This reduces the rebuilt targets when touching StructuredSerialize.h from ~1200 to ~400. The remaining are due to generated IPC headers.
This commit is contained in:
parent
20c6005341
commit
7fad8c333d
Notes:
github-actions[bot]
2025-07-18 14:10:51 +00:00
Author: https://github.com/trflynn89
Commit: 7fad8c333d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5492
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/shannonbooth
21 changed files with 23 additions and 9 deletions
|
@ -22,6 +22,7 @@
|
|||
#include <LibWeb/HTML/MessageEvent.h>
|
||||
#include <LibWeb/HTML/MessagePort.h>
|
||||
#include <LibWeb/HTML/Scripting/TemporaryExecutionContext.h>
|
||||
#include <LibWeb/HTML/StructuredSerialize.h>
|
||||
#include <LibWeb/HTML/StructuredSerializeOptions.h>
|
||||
#include <LibWeb/HTML/WorkerGlobalScope.h>
|
||||
|
||||
|
@ -273,7 +274,7 @@ WebIDL::ExceptionOr<void> MessagePort::message_port_post_message_steps(GC::Ptr<M
|
|||
}
|
||||
|
||||
// 7. Add a task that runs the following steps to the port message queue of targetPort:
|
||||
post_port_message(move(serialize_with_transfer_result));
|
||||
post_port_message(serialize_with_transfer_result);
|
||||
|
||||
return {};
|
||||
}
|
||||
|
@ -288,7 +289,7 @@ ErrorOr<void> MessagePort::send_message_on_transport(SerializedTransferRecord co
|
|||
return {};
|
||||
}
|
||||
|
||||
void MessagePort::post_port_message(SerializedTransferRecord serialize_with_transfer_result)
|
||||
void MessagePort::post_port_message(SerializedTransferRecord const& serialize_with_transfer_result)
|
||||
{
|
||||
if (!m_transport || !m_transport->is_open())
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue