From 6656f70387f9ca18e6f57d99ce1e3691a2789cf9 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Tue, 27 Feb 2024 10:29:19 -0500 Subject: [PATCH] LibWeb: Use TypedArray as a forward-declaration where appropriate This reduces the number of files needed to be recompiled when TypedArray changes from ~1000 to ~600. The remaining ~600 are almost all generated constructors and prototypes. --- Userland/Libraries/LibWeb/HTML/StructuredSerialize.h | 2 -- .../Libraries/LibWeb/Streams/ReadableByteStreamController.cpp | 1 + Userland/Libraries/LibWeb/Streams/ReadableStreamBYOBRequest.cpp | 1 + Userland/Libraries/LibWeb/Streams/ReadableStreamBYOBRequest.h | 1 - 4 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Userland/Libraries/LibWeb/HTML/StructuredSerialize.h b/Userland/Libraries/LibWeb/HTML/StructuredSerialize.h index 0ffb13eb6e..b1c792efbd 100644 --- a/Userland/Libraries/LibWeb/HTML/StructuredSerialize.h +++ b/Userland/Libraries/LibWeb/HTML/StructuredSerialize.h @@ -13,8 +13,6 @@ #include #include #include -#include -#include #include // Structured serialize is an entirely different format from IPC because: diff --git a/Userland/Libraries/LibWeb/Streams/ReadableByteStreamController.cpp b/Userland/Libraries/LibWeb/Streams/ReadableByteStreamController.cpp index 9d85593beb..243e6383c4 100644 --- a/Userland/Libraries/LibWeb/Streams/ReadableByteStreamController.cpp +++ b/Userland/Libraries/LibWeb/Streams/ReadableByteStreamController.cpp @@ -5,6 +5,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include #include #include #include diff --git a/Userland/Libraries/LibWeb/Streams/ReadableStreamBYOBRequest.cpp b/Userland/Libraries/LibWeb/Streams/ReadableStreamBYOBRequest.cpp index 9f53144368..d56e9278c2 100644 --- a/Userland/Libraries/LibWeb/Streams/ReadableStreamBYOBRequest.cpp +++ b/Userland/Libraries/LibWeb/Streams/ReadableStreamBYOBRequest.cpp @@ -5,6 +5,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include #include #include #include diff --git a/Userland/Libraries/LibWeb/Streams/ReadableStreamBYOBRequest.h b/Userland/Libraries/LibWeb/Streams/ReadableStreamBYOBRequest.h index 0bf6e6315f..e097e5521f 100644 --- a/Userland/Libraries/LibWeb/Streams/ReadableStreamBYOBRequest.h +++ b/Userland/Libraries/LibWeb/Streams/ReadableStreamBYOBRequest.h @@ -7,7 +7,6 @@ #pragma once -#include #include #include #include