mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
LibWeb: Reorganize definitions and includes to avoid circular references
This is necessary to avoid a circular reference when including Serializable.h in DOMException.h. This moves the definition of SerializationRecord, SerializationMemory, and DeserializationMemory into LibWeb/Forward.h so that Serializable.h only needs to include LibWeb/Forward.h.
This commit is contained in:
parent
4569b997a6
commit
53394230ca
Notes:
github-actions[bot]
2024-11-24 10:12:57 +00:00
Author: https://github.com/kennethmyhra
Commit: 53394230ca
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2532
7 changed files with 25 additions and 6 deletions
|
@ -13,6 +13,8 @@
|
|||
#include <AK/Vector.h>
|
||||
#include <LibIPC/Forward.h>
|
||||
#include <LibJS/Forward.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
#include <LibWeb/HTML/StructuredSerializeTypes.h>
|
||||
#include <LibWeb/WebIDL/ExceptionOr.h>
|
||||
|
||||
// Structured serialize is an entirely different format from IPC because:
|
||||
|
@ -22,10 +24,6 @@
|
|||
|
||||
namespace Web::HTML {
|
||||
|
||||
using SerializationRecord = Vector<u32>;
|
||||
using SerializationMemory = HashMap<GC::Root<JS::Value>, u32>;
|
||||
using DeserializationMemory = GC::MarkedVector<JS::Value>;
|
||||
|
||||
struct TransferDataHolder {
|
||||
Vector<u8> data;
|
||||
Vector<IPC::File> fds;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue