[GTK][WPE] Fix non-unified builds after r251326
https://bugs.webkit.org/show_bug.cgi?id=203244

Reviewed by Youenn Fablet.

Source/JavaScriptCore:

* ftl/FTLOSREntry.h: Add missing forward declaration of JSC::VM.
* inspector/ScriptCallStackFactory.h: Add missing forward declaration of JSC::JSGlobalObject.
* llint/LLIntExceptions.h: Add missing forward declaration of JSC::VM.
* runtime/ExceptionFuzz.h: Add missing forward declaration of JSC::JSGlobalObject.
* runtime/JSDateMath.h: Ditto.
* runtime/JSStringJoiner.h: Add missing inclusion of the JSGlobalObject.h header.
* runtime/Watchdog.h: Add missing forward declaration of JSC::JSGlobalObject.
* wasm/WasmOperations.h: Add missing forward declaration of JSC::JSWebAssemblyInstance.

Source/WebCore:

No new tests needed.

* Modules/async-clipboard/Clipboard.cpp: Switch inclusion of Blob.h to JSBlob.h, in order to
have a toJS() conversion for Blob defined. Remove the unneeded JSPromise.h header inclusion.
* Modules/indexeddb/IDBFactory.h: Add missing forward declaration of JSC::JSGlobalObject.
* bindings/js/JSDOMBindingSecurity.h: Ditto.
* bindings/js/ScriptState.h: Ditto.
* dom/Node.cpp: Add missing inclusion of JavaScriptCore/HeapInlines.h
* page/RemoteDOMWindow.h: Add missing forward declaration of JSC::JSGlobalObject.
* platform/graphics/HEVCUtilities.cpp: Add missing inclusion of the wtf/text/StringHash.h
header, needed to use String as key for a HashMap.

Source/WebKit:

* Shared/UserData.cpp: Add missing inclusion of WebCoreArgumentCoders.h
* UIProcess/Automation/SimulatedInputDispatcher.cpp: Add missing inclusion of wtf/Variant.h
* UIProcess/ProvisionalPageProxy.h: Add missing inclusion of WebCore/ResourceRequest.h
* UIProcess/WebTextChecker.cpp: Add missing inclusion of WebPageProxy.h
* WebProcess/Databases/WebDatabaseProvider.cpp: Add missing inclusion of WebIDBConnectionToServer.h


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@251436 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/JavaScriptCore/ChangeLog b/Source/JavaScriptCore/ChangeLog
index 8766ff6..d55e44e 100644
--- a/Source/JavaScriptCore/ChangeLog
+++ b/Source/JavaScriptCore/ChangeLog
@@ -1,3 +1,19 @@
+2019-10-22  Adrian Perez de Castro  <aperez@igalia.com>
+
+        [GTK][WPE] Fix non-unified builds after r251326
+        https://bugs.webkit.org/show_bug.cgi?id=203244
+
+        Reviewed by Youenn Fablet.
+
+        * ftl/FTLOSREntry.h: Add missing forward declaration of JSC::VM.
+        * inspector/ScriptCallStackFactory.h: Add missing forward declaration of JSC::JSGlobalObject.
+        * llint/LLIntExceptions.h: Add missing forward declaration of JSC::VM.
+        * runtime/ExceptionFuzz.h: Add missing forward declaration of JSC::JSGlobalObject.
+        * runtime/JSDateMath.h: Ditto.
+        * runtime/JSStringJoiner.h: Add missing inclusion of the JSGlobalObject.h header.
+        * runtime/Watchdog.h: Add missing forward declaration of JSC::JSGlobalObject.
+        * wasm/WasmOperations.h: Add missing forward declaration of JSC::JSWebAssemblyInstance.
+
 2019-10-21  Yusuke Suzuki  <ysuzuki@apple.com>
 
         [JSC] Thread JSGlobalObject* instead of ExecState*
diff --git a/Source/JavaScriptCore/ftl/FTLOSREntry.h b/Source/JavaScriptCore/ftl/FTLOSREntry.h
index 2388d4f..3d123fb 100644
--- a/Source/JavaScriptCore/ftl/FTLOSREntry.h
+++ b/Source/JavaScriptCore/ftl/FTLOSREntry.h
@@ -31,6 +31,7 @@
 
 class CallFrame;
 class CodeBlock;
+class VM;
 
 namespace FTL {
 
diff --git a/Source/JavaScriptCore/inspector/ScriptCallStackFactory.h b/Source/JavaScriptCore/inspector/ScriptCallStackFactory.h
index 40ca247..42577b5 100644
--- a/Source/JavaScriptCore/inspector/ScriptCallStackFactory.h
+++ b/Source/JavaScriptCore/inspector/ScriptCallStackFactory.h
@@ -37,6 +37,7 @@
 namespace JSC {
 class CallFrame;
 class Exception;
+class JSGlobalObject;
 class JSValue;
 }
 
diff --git a/Source/JavaScriptCore/llint/LLIntExceptions.h b/Source/JavaScriptCore/llint/LLIntExceptions.h
index ce4ce61..ca8cf59 100644
--- a/Source/JavaScriptCore/llint/LLIntExceptions.h
+++ b/Source/JavaScriptCore/llint/LLIntExceptions.h
@@ -30,6 +30,7 @@
 namespace JSC {
 
 class CallFrame;
+class VM;
 struct Instruction;
 
 namespace LLInt {
diff --git a/Source/JavaScriptCore/runtime/ExceptionFuzz.h b/Source/JavaScriptCore/runtime/ExceptionFuzz.h
index 279650e..6db2acc 100644
--- a/Source/JavaScriptCore/runtime/ExceptionFuzz.h
+++ b/Source/JavaScriptCore/runtime/ExceptionFuzz.h
@@ -30,6 +30,7 @@
 namespace JSC {
 
 class CallFrame;
+class JSGlobalObject;
 class ThrowScope;
 
 // Call this only if you know that exception fuzzing is enabled.
diff --git a/Source/JavaScriptCore/runtime/JSDateMath.h b/Source/JavaScriptCore/runtime/JSDateMath.h
index 33e1211..1275556 100644
--- a/Source/JavaScriptCore/runtime/JSDateMath.h
+++ b/Source/JavaScriptCore/runtime/JSDateMath.h
@@ -48,6 +48,7 @@
 namespace JSC {
 
 class CallFrame;
+class JSGlobalObject;
 class VM;
 
 JS_EXPORT_PRIVATE void msToGregorianDateTime(VM&, double, WTF::TimeType outputTimeType, GregorianDateTime&);
diff --git a/Source/JavaScriptCore/runtime/JSStringJoiner.h b/Source/JavaScriptCore/runtime/JSStringJoiner.h
index 26bc900..d694538 100644
--- a/Source/JavaScriptCore/runtime/JSStringJoiner.h
+++ b/Source/JavaScriptCore/runtime/JSStringJoiner.h
@@ -27,6 +27,7 @@
 
 #include "ExceptionHelpers.h"
 #include "JSCJSValue.h"
+#include "JSGlobalObject.h"
 
 namespace JSC {
 
diff --git a/Source/JavaScriptCore/runtime/Watchdog.h b/Source/JavaScriptCore/runtime/Watchdog.h
index 1c76a08..a31e4ee 100644
--- a/Source/JavaScriptCore/runtime/Watchdog.h
+++ b/Source/JavaScriptCore/runtime/Watchdog.h
@@ -34,6 +34,7 @@
 namespace JSC {
 
 class CallFrame;
+class JSGlobalObject;
 class VM;
 
 class Watchdog : public WTF::ThreadSafeRefCounted<Watchdog> {
diff --git a/Source/JavaScriptCore/wasm/WasmOperations.h b/Source/JavaScriptCore/wasm/WasmOperations.h
index 89bdfb0..af05693 100644
--- a/Source/JavaScriptCore/wasm/WasmOperations.h
+++ b/Source/JavaScriptCore/wasm/WasmOperations.h
@@ -30,6 +30,9 @@
 #include "SlowPathReturnType.h"
 
 namespace JSC {
+
+class JSWebAssemblyInstance;
+
 namespace Probe {
 class Context;
 } // namespace JSC::Probe
diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog
index 8ed1859..33b70d6 100644
--- a/Source/WebCore/ChangeLog
+++ b/Source/WebCore/ChangeLog
@@ -1,3 +1,22 @@
+2019-10-22  Adrian Perez de Castro  <aperez@igalia.com>
+
+        [GTK][WPE] Fix non-unified builds after r251326
+        https://bugs.webkit.org/show_bug.cgi?id=203244
+
+        Reviewed by Youenn Fablet.
+
+        No new tests needed.
+
+        * Modules/async-clipboard/Clipboard.cpp: Switch inclusion of Blob.h to JSBlob.h, in order to
+        have a toJS() conversion for Blob defined. Remove the unneeded JSPromise.h header inclusion.
+        * Modules/indexeddb/IDBFactory.h: Add missing forward declaration of JSC::JSGlobalObject.
+        * bindings/js/JSDOMBindingSecurity.h: Ditto.
+        * bindings/js/ScriptState.h: Ditto.
+        * dom/Node.cpp: Add missing inclusion of JavaScriptCore/HeapInlines.h
+        * page/RemoteDOMWindow.h: Add missing forward declaration of JSC::JSGlobalObject.
+        * platform/graphics/HEVCUtilities.cpp: Add missing inclusion of the wtf/text/StringHash.h
+        header, needed to use String as key for a HashMap.
+
 2019-10-22  Miguel Gomez  <magomez@igalia.com>
 
         REGRESSION(r244372): [GTK][WPE] fast/images/icon-decoding.html and others are failing
diff --git a/Source/WebCore/Modules/async-clipboard/Clipboard.cpp b/Source/WebCore/Modules/async-clipboard/Clipboard.cpp
index 4f8a395..4b03438 100644
--- a/Source/WebCore/Modules/async-clipboard/Clipboard.cpp
+++ b/Source/WebCore/Modules/async-clipboard/Clipboard.cpp
@@ -26,11 +26,10 @@
 #include "config.h"
 #include "Clipboard.h"
 
-#include "Blob.h"
 #include "ClipboardItem.h"
 #include "Frame.h"
+#include "JSBlob.h"
 #include "JSClipboardItem.h"
-#include "JSDOMPromise.h"
 #include "JSDOMPromiseDeferred.h"
 #include "Navigator.h"
 #include "Pasteboard.h"
diff --git a/Source/WebCore/Modules/indexeddb/IDBFactory.h b/Source/WebCore/Modules/indexeddb/IDBFactory.h
index 31c5f79..1345651 100644
--- a/Source/WebCore/Modules/indexeddb/IDBFactory.h
+++ b/Source/WebCore/Modules/indexeddb/IDBFactory.h
@@ -35,6 +35,7 @@
 
 namespace JSC {
 class CallFrame;
+class JSGlobalObject;
 class JSValue;
 }
 
diff --git a/Source/WebCore/bindings/js/JSDOMBindingSecurity.h b/Source/WebCore/bindings/js/JSDOMBindingSecurity.h
index 75ec537..b148857 100644
--- a/Source/WebCore/bindings/js/JSDOMBindingSecurity.h
+++ b/Source/WebCore/bindings/js/JSDOMBindingSecurity.h
@@ -28,6 +28,7 @@
 
 namespace JSC {
 class CallFrame;
+class JSGlobalObject;
 }
 
 namespace WebCore {
diff --git a/Source/WebCore/bindings/js/ScriptState.h b/Source/WebCore/bindings/js/ScriptState.h
index dff9981..04f1ba4 100644
--- a/Source/WebCore/bindings/js/ScriptState.h
+++ b/Source/WebCore/bindings/js/ScriptState.h
@@ -33,6 +33,7 @@
 
 namespace JSC {
 class CallFrame;
+class JSGlobalObject;
 }
 
 namespace WebCore {
diff --git a/Source/WebCore/dom/Node.cpp b/Source/WebCore/dom/Node.cpp
index adbb31d..6cadc5c 100644
--- a/Source/WebCore/dom/Node.cpp
+++ b/Source/WebCore/dom/Node.cpp
@@ -77,6 +77,7 @@
 #include "WheelEvent.h"
 #include "XMLNSNames.h"
 #include "XMLNames.h"
+#include <JavaScriptCore/HeapInlines.h>
 #include <wtf/IsoMallocInlines.h>
 #include <wtf/RefCountedLeakCounter.h>
 #include <wtf/SHA1.h>
diff --git a/Source/WebCore/page/RemoteDOMWindow.h b/Source/WebCore/page/RemoteDOMWindow.h
index 2145cbb..4050df5 100644
--- a/Source/WebCore/page/RemoteDOMWindow.h
+++ b/Source/WebCore/page/RemoteDOMWindow.h
@@ -32,6 +32,7 @@
 
 namespace JSC {
 class CallFrame;
+class JSGlobalObject;
 class JSObject;
 class JSValue;
 template<typename> class Strong;
diff --git a/Source/WebCore/platform/graphics/HEVCUtilities.cpp b/Source/WebCore/platform/graphics/HEVCUtilities.cpp
index 32b7223..3995249 100644
--- a/Source/WebCore/platform/graphics/HEVCUtilities.cpp
+++ b/Source/WebCore/platform/graphics/HEVCUtilities.cpp
@@ -29,6 +29,7 @@
 #include <wtf/HashMap.h>
 #include <wtf/HashSet.h>
 #include <wtf/NeverDestroyed.h>
+#include <wtf/text/StringHash.h>
 #include <wtf/text/StringToIntegerConversion.h>
 
 namespace WebCore {
diff --git a/Source/WebKit/ChangeLog b/Source/WebKit/ChangeLog
index 38e7f95..ca950b2 100644
--- a/Source/WebKit/ChangeLog
+++ b/Source/WebKit/ChangeLog
@@ -1,3 +1,16 @@
+2019-10-22  Adrian Perez de Castro  <aperez@igalia.com>
+
+        [GTK][WPE] Fix non-unified builds after r251326
+        https://bugs.webkit.org/show_bug.cgi?id=203244
+
+        Reviewed by Youenn Fablet.
+
+        * Shared/UserData.cpp: Add missing inclusion of WebCoreArgumentCoders.h
+        * UIProcess/Automation/SimulatedInputDispatcher.cpp: Add missing inclusion of wtf/Variant.h
+        * UIProcess/ProvisionalPageProxy.h: Add missing inclusion of WebCore/ResourceRequest.h
+        * UIProcess/WebTextChecker.cpp: Add missing inclusion of WebPageProxy.h
+        * WebProcess/Databases/WebDatabaseProvider.cpp: Add missing inclusion of WebIDBConnectionToServer.h
+
 2019-10-22  youenn fablet  <youenn@apple.com>
 
         WebSWServerToContextConnection should not assert when failing loads at destruction time
diff --git a/Source/WebKit/Shared/UserData.cpp b/Source/WebKit/Shared/UserData.cpp
index 791035a..f839555 100644
--- a/Source/WebKit/Shared/UserData.cpp
+++ b/Source/WebKit/Shared/UserData.cpp
@@ -45,6 +45,7 @@
 #include "Encoder.h"
 #include "ShareableBitmap.h"
 #include "WebCertificateInfo.h"
+#include "WebCoreArgumentCoders.h"
 #include "WebImage.h"
 #include "WebRenderLayer.h"
 #include "WebRenderObject.h"
diff --git a/Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.cpp b/Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.cpp
index 6b9ca64..f813686 100644
--- a/Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.cpp
+++ b/Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.cpp
@@ -32,6 +32,7 @@
 #include "Logging.h"
 #include "WebAutomationSession.h"
 #include "WebAutomationSessionMacros.h"
+#include <wtf/Variant.h>
 
 namespace WebKit {
 
diff --git a/Source/WebKit/UIProcess/ProvisionalPageProxy.h b/Source/WebKit/UIProcess/ProvisionalPageProxy.h
index 1752150..d352513 100644
--- a/Source/WebKit/UIProcess/ProvisionalPageProxy.h
+++ b/Source/WebKit/UIProcess/ProvisionalPageProxy.h
@@ -30,6 +30,7 @@
 #include "WebFramePolicyListenerProxy.h"
 #include "WebPageProxyMessages.h"
 #include "WebsitePoliciesData.h"
+#include <WebCore/ResourceRequest.h>
 #include <wtf/WeakPtr.h>
 
 namespace API {
diff --git a/Source/WebKit/UIProcess/WebTextChecker.cpp b/Source/WebKit/UIProcess/WebTextChecker.cpp
index 8a85434..fd7dc62 100644
--- a/Source/WebKit/UIProcess/WebTextChecker.cpp
+++ b/Source/WebKit/UIProcess/WebTextChecker.cpp
@@ -28,6 +28,7 @@
 
 #include "TextChecker.h"
 #include "WKAPICast.h"
+#include "WebPageProxy.h"
 #include "WebProcessPool.h"
 #include <wtf/RefPtr.h>
 
diff --git a/Source/WebKit/WebProcess/Databases/WebDatabaseProvider.cpp b/Source/WebKit/WebProcess/Databases/WebDatabaseProvider.cpp
index 2186559..4b5c5c8 100644
--- a/Source/WebKit/WebProcess/Databases/WebDatabaseProvider.cpp
+++ b/Source/WebKit/WebProcess/Databases/WebDatabaseProvider.cpp
@@ -27,6 +27,7 @@
 #include "WebDatabaseProvider.h"
 
 #include "NetworkProcessConnection.h"
+#include "WebIDBConnectionToServer.h"
 #include "WebProcess.h"
 #include <wtf/HashMap.h>
 #include <wtf/NeverDestroyed.h>