Bläddra i källkod

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.
Timothy Flynn 1 år sedan
förälder
incheckning
6656f70387

+ 0 - 2
Userland/Libraries/LibWeb/HTML/StructuredSerialize.h

@@ -13,8 +13,6 @@
 #include <AK/Vector.h>
 #include <AK/Vector.h>
 #include <LibIPC/Forward.h>
 #include <LibIPC/Forward.h>
 #include <LibJS/Forward.h>
 #include <LibJS/Forward.h>
-#include <LibJS/Runtime/DataView.h>
-#include <LibJS/Runtime/TypedArray.h>
 #include <LibWeb/WebIDL/ExceptionOr.h>
 #include <LibWeb/WebIDL/ExceptionOr.h>
 
 
 // Structured serialize is an entirely different format from IPC because:
 // Structured serialize is an entirely different format from IPC because:

+ 1 - 0
Userland/Libraries/LibWeb/Streams/ReadableByteStreamController.cpp

@@ -5,6 +5,7 @@
  * SPDX-License-Identifier: BSD-2-Clause
  * SPDX-License-Identifier: BSD-2-Clause
  */
  */
 
 
+#include <LibJS/Runtime/TypedArray.h>
 #include <LibWeb/Bindings/Intrinsics.h>
 #include <LibWeb/Bindings/Intrinsics.h>
 #include <LibWeb/Streams/AbstractOperations.h>
 #include <LibWeb/Streams/AbstractOperations.h>
 #include <LibWeb/Streams/ReadableByteStreamController.h>
 #include <LibWeb/Streams/ReadableByteStreamController.h>

+ 1 - 0
Userland/Libraries/LibWeb/Streams/ReadableStreamBYOBRequest.cpp

@@ -5,6 +5,7 @@
  * SPDX-License-Identifier: BSD-2-Clause
  * SPDX-License-Identifier: BSD-2-Clause
  */
  */
 
 
+#include <LibJS/Runtime/TypedArray.h>
 #include <LibWeb/Bindings/Intrinsics.h>
 #include <LibWeb/Bindings/Intrinsics.h>
 #include <LibWeb/Streams/ReadableByteStreamController.h>
 #include <LibWeb/Streams/ReadableByteStreamController.h>
 #include <LibWeb/Streams/ReadableStreamBYOBRequest.h>
 #include <LibWeb/Streams/ReadableStreamBYOBRequest.h>

+ 0 - 1
Userland/Libraries/LibWeb/Streams/ReadableStreamBYOBRequest.h

@@ -7,7 +7,6 @@
 
 
 #pragma once
 #pragma once
 
 
-#include <LibJS/Runtime/TypedArray.h>
 #include <LibWeb/Bindings/PlatformObject.h>
 #include <LibWeb/Bindings/PlatformObject.h>
 #include <LibWeb/Forward.h>
 #include <LibWeb/Forward.h>
 #include <LibWeb/Streams/ReadableByteStreamController.h>
 #include <LibWeb/Streams/ReadableByteStreamController.h>