Add Optional to Forward.h.
authorross.kirsling@sony.com <ross.kirsling@sony.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 12 Mar 2019 05:27:44 +0000 (05:27 +0000)
committerross.kirsling@sony.com <ross.kirsling@sony.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 12 Mar 2019 05:27:44 +0000 (05:27 +0000)
https://bugs.webkit.org/show_bug.cgi?id=195586

Reviewed by Darin Adler.

Source/JavaScriptCore:

* b3/B3Common.cpp:
* b3/B3Common.h:
* debugger/DebuggerParseData.cpp:
* debugger/DebuggerParseData.h:
* heap/HeapSnapshot.cpp:
* heap/HeapSnapshot.h:
* jit/PCToCodeOriginMap.cpp:
* jit/PCToCodeOriginMap.h:
* runtime/AbstractModuleRecord.cpp:
* runtime/AbstractModuleRecord.h:
* wasm/WasmInstance.h:
* wasm/WasmModuleParser.h:
* wasm/WasmSectionParser.cpp:
* wasm/WasmSectionParser.h:
* wasm/WasmStreamingParser.cpp:
* wasm/WasmStreamingParser.h:
* yarr/YarrFlags.cpp:
* yarr/YarrFlags.h:
* yarr/YarrUnicodeProperties.cpp:
* yarr/YarrUnicodeProperties.h:
Remove unnecessary includes from headers.

Source/WebCore:

* Modules/encryptedmedia/MediaKeyStatusMap.cpp:
* Modules/encryptedmedia/MediaKeyStatusMap.h:
* Modules/webauthn/apdu/ApduCommand.cpp:
* Modules/webauthn/apdu/ApduCommand.h:
* Modules/webauthn/apdu/ApduResponse.cpp:
* Modules/webauthn/apdu/ApduResponse.h:
* Modules/webauthn/fido/FidoHidMessage.cpp:
* Modules/webauthn/fido/FidoHidMessage.h:
* Modules/webauthn/fido/U2fCommandConstructor.cpp:
* Modules/webauthn/fido/U2fCommandConstructor.h:
* Modules/webdatabase/SQLTransaction.cpp:
* Modules/webdatabase/SQLTransaction.h:
* Modules/webgpu/WHLSL/Metal/WHLSLEntryPointScaffolding.cpp:
* Modules/webgpu/WHLSL/Metal/WHLSLEntryPointScaffolding.h:
* Modules/webgpu/WHLSL/WHLSLGatherEntryPointItems.h:
* Modules/webgpu/WHLSL/WHLSLPrepare.cpp:
* Modules/webgpu/WHLSL/WHLSLPrepare.h:
* Modules/webgpu/WebGPU.cpp:
* Modules/webgpu/WebGPU.h:
* Modules/webgpu/WebGPUCommandBuffer.cpp:
* Modules/webgpu/WebGPUCommandBuffer.h:
* animation/WebAnimation.cpp:
* animation/WebAnimation.h:
* crypto/gcrypt/GCryptUtilities.cpp:
* crypto/gcrypt/GCryptUtilities.h:
* css/CSSStyleDeclaration.cpp:
* css/CSSStyleDeclaration.h:
* dom/TextDecoder.cpp:
* dom/TextDecoder.h:
* dom/UserGestureIndicator.cpp:
* dom/UserGestureIndicator.h:
* editing/ChangeListTypeCommand.cpp:
* editing/ChangeListTypeCommand.h:
* editing/EditingStyle.cpp:
* editing/EditingStyle.h:
* html/DOMFormData.cpp:
* html/DOMFormData.h:
* html/HTMLAllCollection.cpp:
* html/HTMLAllCollection.h:
* html/HTMLAnchorElement.cpp:
* html/HTMLAnchorElement.h:
* html/ImageBitmap.cpp:
* html/ImageBitmap.h:
* html/canvas/Path2D.h:
* html/canvas/WebMetalEnums.cpp:
* html/canvas/WebMetalEnums.h:
* html/parser/HTMLParserIdioms.cpp:
* html/parser/HTMLParserIdioms.h:
* loader/ResourceCryptographicDigest.cpp:
* loader/ResourceCryptographicDigest.h:
* mathml/MathMLOperatorDictionary.cpp:
* mathml/MathMLOperatorDictionary.h:
* page/PerformanceEntry.cpp:
* page/PerformanceEntry.h:
* page/ResourceUsageData.h:
* platform/ReferrerPolicy.cpp:
* platform/ReferrerPolicy.h:
* platform/Theme.cpp:
* platform/Theme.h:
* platform/encryptedmedia/CDMInstance.h:
* platform/graphics/gpu/GPUDevice.cpp:
* platform/graphics/gpu/GPUDevice.h:
* platform/graphics/transforms/AffineTransform.cpp:
* platform/graphics/transforms/AffineTransform.h:
* platform/graphics/transforms/TransformState.cpp:
* platform/graphics/transforms/TransformState.h:
* platform/graphics/transforms/TransformationMatrix.cpp:
* platform/graphics/transforms/TransformationMatrix.h:
* platform/graphics/win/ImageDecoderDirect2D.cpp:
* platform/graphics/win/ImageDecoderDirect2D.h:
* platform/mediacapabilities/AudioConfiguration.h:
* platform/network/CacheValidation.cpp:
* platform/network/CacheValidation.h:
* platform/network/DataURLDecoder.cpp:
* platform/network/DataURLDecoder.h:
* platform/network/HTTPParsers.cpp:
* platform/network/HTTPParsers.h:
* platform/network/curl/CookieJarDB.cpp:
* platform/network/curl/CookieJarDB.h:
* platform/win/SearchPopupMenuDB.cpp:
* platform/win/SearchPopupMenuDB.h:
* rendering/ImageQualityController.cpp:
* rendering/ImageQualityController.h:
* svg/SVGToOTFFontConversion.cpp:
* svg/SVGToOTFFontConversion.h:
Remove unnecessary includes from headers.

Source/WebCore/PAL:

* pal/crypto/tasn1/Utilities.cpp:
* pal/crypto/tasn1/Utilities.h:
Remove unnecessary includes from headers.

Source/WebKit:

* Shared/RTCNetwork.cpp:
* Shared/RTCNetwork.h:
* Shared/RTCPacketOptions.cpp:
* Shared/RTCPacketOptions.h:
* UIProcess/API/APIWebsitePolicies.h:
* UIProcess/WebStorage/LocalStorageDatabaseTracker.h:
Remove unnecessary includes from headers.

Source/WTF:

* wtf/Forward.h:
Add forward declaration for Optional.

* wtf/CPUTime.h:
* wtf/Expected.h:
* wtf/MainThread.h:
* wtf/MemoryFootprint.h:
* wtf/URLHelpers.cpp:
* wtf/URLHelpers.h:
* wtf/cocoa/CPUTimeCocoa.cpp:
* wtf/fuchsia/CPUTimeFuchsia.cpp:
* wtf/unix/CPUTimeUnix.cpp:
* wtf/win/CPUTimeWin.cpp:
Remove unnecessary includes from headers.

Tools:

* TestWebKitAPI/Tests/WebCore/ApduTest.cpp:
* TestWebKitAPI/Tests/WebCore/FidoHidMessageTest.cpp:
Remove unnecessary includes from headers.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@242776 268f45cc-cd09-0410-ab3c-d52691b4dbfc

132 files changed:
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/b3/B3Common.cpp
Source/JavaScriptCore/b3/B3Common.h
Source/JavaScriptCore/debugger/DebuggerParseData.cpp
Source/JavaScriptCore/debugger/DebuggerParseData.h
Source/JavaScriptCore/heap/HeapSnapshot.cpp
Source/JavaScriptCore/heap/HeapSnapshot.h
Source/JavaScriptCore/jit/PCToCodeOriginMap.cpp
Source/JavaScriptCore/jit/PCToCodeOriginMap.h
Source/JavaScriptCore/runtime/AbstractModuleRecord.cpp
Source/JavaScriptCore/runtime/AbstractModuleRecord.h
Source/JavaScriptCore/wasm/WasmInstance.h
Source/JavaScriptCore/wasm/WasmModuleParser.h
Source/JavaScriptCore/wasm/WasmSectionParser.cpp
Source/JavaScriptCore/wasm/WasmSectionParser.h
Source/JavaScriptCore/wasm/WasmStreamingParser.cpp
Source/JavaScriptCore/wasm/WasmStreamingParser.h
Source/JavaScriptCore/yarr/YarrFlags.cpp
Source/JavaScriptCore/yarr/YarrFlags.h
Source/JavaScriptCore/yarr/YarrUnicodeProperties.cpp
Source/JavaScriptCore/yarr/YarrUnicodeProperties.h
Source/WTF/ChangeLog
Source/WTF/wtf/CPUTime.h
Source/WTF/wtf/Expected.h
Source/WTF/wtf/Forward.h
Source/WTF/wtf/MainThread.h
Source/WTF/wtf/MemoryFootprint.h
Source/WTF/wtf/URLHelpers.cpp
Source/WTF/wtf/URLHelpers.h
Source/WTF/wtf/cocoa/CPUTimeCocoa.cpp
Source/WTF/wtf/fuchsia/CPUTimeFuchsia.cpp
Source/WTF/wtf/unix/CPUTimeUnix.cpp
Source/WTF/wtf/win/CPUTimeWin.cpp
Source/WebCore/ChangeLog
Source/WebCore/Modules/encryptedmedia/MediaKeyStatusMap.cpp
Source/WebCore/Modules/encryptedmedia/MediaKeyStatusMap.h
Source/WebCore/Modules/webauthn/apdu/ApduCommand.cpp
Source/WebCore/Modules/webauthn/apdu/ApduCommand.h
Source/WebCore/Modules/webauthn/apdu/ApduResponse.cpp
Source/WebCore/Modules/webauthn/apdu/ApduResponse.h
Source/WebCore/Modules/webauthn/fido/FidoHidMessage.cpp
Source/WebCore/Modules/webauthn/fido/FidoHidMessage.h
Source/WebCore/Modules/webauthn/fido/U2fCommandConstructor.cpp
Source/WebCore/Modules/webauthn/fido/U2fCommandConstructor.h
Source/WebCore/Modules/webdatabase/SQLTransaction.cpp
Source/WebCore/Modules/webdatabase/SQLTransaction.h
Source/WebCore/Modules/webgpu/WHLSL/Metal/WHLSLEntryPointScaffolding.cpp
Source/WebCore/Modules/webgpu/WHLSL/Metal/WHLSLEntryPointScaffolding.h
Source/WebCore/Modules/webgpu/WHLSL/WHLSLGatherEntryPointItems.h
Source/WebCore/Modules/webgpu/WHLSL/WHLSLPrepare.cpp
Source/WebCore/Modules/webgpu/WHLSL/WHLSLPrepare.h
Source/WebCore/Modules/webgpu/WebGPU.cpp
Source/WebCore/Modules/webgpu/WebGPU.h
Source/WebCore/Modules/webgpu/WebGPUCommandBuffer.cpp
Source/WebCore/Modules/webgpu/WebGPUCommandBuffer.h
Source/WebCore/PAL/ChangeLog
Source/WebCore/PAL/pal/crypto/tasn1/Utilities.cpp
Source/WebCore/PAL/pal/crypto/tasn1/Utilities.h
Source/WebCore/animation/WebAnimation.cpp
Source/WebCore/animation/WebAnimation.h
Source/WebCore/crypto/gcrypt/GCryptUtilities.cpp
Source/WebCore/crypto/gcrypt/GCryptUtilities.h
Source/WebCore/css/CSSStyleDeclaration.cpp
Source/WebCore/css/CSSStyleDeclaration.h
Source/WebCore/dom/TextDecoder.cpp
Source/WebCore/dom/TextDecoder.h
Source/WebCore/dom/UserGestureIndicator.cpp
Source/WebCore/dom/UserGestureIndicator.h
Source/WebCore/editing/ChangeListTypeCommand.cpp
Source/WebCore/editing/ChangeListTypeCommand.h
Source/WebCore/editing/EditingStyle.cpp
Source/WebCore/editing/EditingStyle.h
Source/WebCore/html/DOMFormData.cpp
Source/WebCore/html/DOMFormData.h
Source/WebCore/html/HTMLAllCollection.cpp
Source/WebCore/html/HTMLAllCollection.h
Source/WebCore/html/HTMLAnchorElement.cpp
Source/WebCore/html/HTMLAnchorElement.h
Source/WebCore/html/ImageBitmap.cpp
Source/WebCore/html/ImageBitmap.h
Source/WebCore/html/canvas/Path2D.h
Source/WebCore/html/canvas/WebMetalEnums.cpp
Source/WebCore/html/canvas/WebMetalEnums.h
Source/WebCore/html/parser/HTMLParserIdioms.cpp
Source/WebCore/html/parser/HTMLParserIdioms.h
Source/WebCore/loader/ResourceCryptographicDigest.cpp
Source/WebCore/loader/ResourceCryptographicDigest.h
Source/WebCore/mathml/MathMLOperatorDictionary.cpp
Source/WebCore/mathml/MathMLOperatorDictionary.h
Source/WebCore/page/PerformanceEntry.cpp
Source/WebCore/page/PerformanceEntry.h
Source/WebCore/page/ResourceUsageData.h
Source/WebCore/platform/ReferrerPolicy.cpp
Source/WebCore/platform/ReferrerPolicy.h
Source/WebCore/platform/Theme.cpp
Source/WebCore/platform/Theme.h
Source/WebCore/platform/encryptedmedia/CDMInstance.h
Source/WebCore/platform/graphics/gpu/GPUDevice.cpp
Source/WebCore/platform/graphics/gpu/GPUDevice.h
Source/WebCore/platform/graphics/transforms/AffineTransform.cpp
Source/WebCore/platform/graphics/transforms/AffineTransform.h
Source/WebCore/platform/graphics/transforms/TransformState.cpp
Source/WebCore/platform/graphics/transforms/TransformState.h
Source/WebCore/platform/graphics/transforms/TransformationMatrix.cpp
Source/WebCore/platform/graphics/transforms/TransformationMatrix.h
Source/WebCore/platform/graphics/win/ImageDecoderDirect2D.cpp
Source/WebCore/platform/graphics/win/ImageDecoderDirect2D.h
Source/WebCore/platform/mediacapabilities/AudioConfiguration.h
Source/WebCore/platform/network/CacheValidation.cpp
Source/WebCore/platform/network/CacheValidation.h
Source/WebCore/platform/network/DataURLDecoder.cpp
Source/WebCore/platform/network/DataURLDecoder.h
Source/WebCore/platform/network/HTTPParsers.cpp
Source/WebCore/platform/network/HTTPParsers.h
Source/WebCore/platform/network/curl/CookieJarDB.cpp
Source/WebCore/platform/network/curl/CookieJarDB.h
Source/WebCore/platform/win/SearchPopupMenuDB.cpp
Source/WebCore/platform/win/SearchPopupMenuDB.h
Source/WebCore/rendering/ImageQualityController.cpp
Source/WebCore/rendering/ImageQualityController.h
Source/WebCore/svg/SVGToOTFFontConversion.cpp
Source/WebCore/svg/SVGToOTFFontConversion.h
Source/WebKit/ChangeLog
Source/WebKit/Shared/RTCNetwork.cpp
Source/WebKit/Shared/RTCNetwork.h
Source/WebKit/Shared/RTCPacketOptions.cpp
Source/WebKit/Shared/RTCPacketOptions.h
Source/WebKit/UIProcess/API/APIWebsitePolicies.h
Source/WebKit/UIProcess/WebStorage/LocalStorageDatabaseTracker.h
Tools/ChangeLog
Tools/TestWebKitAPI/Tests/WebCore/ApduTest.cpp
Tools/TestWebKitAPI/Tests/WebCore/FidoHidMessageTest.cpp

index 47fb917..42dfc6e 100644 (file)
@@ -1,3 +1,32 @@
+2019-03-11  Ross Kirsling  <ross.kirsling@sony.com>
+
+        Add Optional to Forward.h.
+        https://bugs.webkit.org/show_bug.cgi?id=195586
+
+        Reviewed by Darin Adler.
+
+        * b3/B3Common.cpp:
+        * b3/B3Common.h:
+        * debugger/DebuggerParseData.cpp:
+        * debugger/DebuggerParseData.h:
+        * heap/HeapSnapshot.cpp:
+        * heap/HeapSnapshot.h:
+        * jit/PCToCodeOriginMap.cpp:
+        * jit/PCToCodeOriginMap.h:
+        * runtime/AbstractModuleRecord.cpp:
+        * runtime/AbstractModuleRecord.h:
+        * wasm/WasmInstance.h:
+        * wasm/WasmModuleParser.h:
+        * wasm/WasmSectionParser.cpp:
+        * wasm/WasmSectionParser.h:
+        * wasm/WasmStreamingParser.cpp:
+        * wasm/WasmStreamingParser.h:
+        * yarr/YarrFlags.cpp:
+        * yarr/YarrFlags.h:
+        * yarr/YarrUnicodeProperties.cpp:
+        * yarr/YarrUnicodeProperties.h:
+        Remove unnecessary includes from headers.
+
 2019-03-11  Justin Fan  <justin_fan@apple.com>
 
         [Web GPU] Update GPUSwapChainDescriptor, GPUSwapChain and implement GPUCanvasContext
index 07a5b0a..40bb32b 100644 (file)
@@ -31,6 +31,7 @@
 #include "DFGCommon.h"
 #include "FTLState.h"
 #include "Options.h"
+#include <wtf/Optional.h>
 
 namespace JSC { namespace B3 {
 
index 1198564..75cc092 100644 (file)
@@ -31,7 +31,6 @@
 #include "GPRInfo.h"
 #include "JSExportMacros.h"
 #include "Options.h"
-#include <wtf/Optional.h>
 
 namespace JSC { namespace B3 {
 
index e3307db..24aa49f 100644 (file)
@@ -27,6 +27,7 @@
 #include "DebuggerParseData.h"
 
 #include "Parser.h"
+#include <wtf/Optional.h>
 
 namespace JSC {
 
index 0622515..9659b1d 100644 (file)
@@ -26,7 +26,6 @@
 #pragma once
 
 #include "ParserTokens.h"
-#include <wtf/Optional.h>
 #include <wtf/Vector.h>
 
 namespace JSC {
index 3df58e2..e3a442d 100644 (file)
@@ -27,6 +27,7 @@
 #include "HeapSnapshot.h"
 
 #include "JSCInlines.h"
+#include <wtf/Optional.h>
 
 namespace JSC {
 
index 60d8284..880a38c 100644 (file)
@@ -27,7 +27,6 @@
 
 #include "HeapSnapshotBuilder.h"
 #include "TinyBloomFilter.h"
-#include <wtf/Optional.h>
 
 namespace JSC {
 
index 7c4a0ed..9cb3266 100644 (file)
@@ -31,6 +31,7 @@
 #include "B3PCToOriginMap.h"
 #include "DFGNode.h"
 #include "LinkBuffer.h"
+#include <wtf/Optional.h>
 
 #if COMPILER(MSVC)
 // See https://msdn.microsoft.com/en-us/library/4wz07268.aspx
index a18ecc5..2a8f25f 100644 (file)
@@ -30,7 +30,6 @@
 #include "CodeOrigin.h"
 #include "MacroAssembler.h"
 #include "VM.h"
-#include <wtf/Optional.h>
 #include <wtf/Vector.h>
 
 namespace JSC {
index 1ba8b7e..018b752 100644 (file)
@@ -35,6 +35,7 @@
 #include "JSModuleRecord.h"
 #include "UnlinkedModuleProgramCodeBlock.h"
 #include "WebAssemblyModuleRecord.h"
+#include <wtf/Optional.h>
 
 namespace JSC {
 namespace AbstractModuleRecordInternal {
index adeeb59..82a43a2 100644 (file)
@@ -27,9 +27,7 @@
 
 #include "Identifier.h"
 #include "JSDestructibleObject.h"
-#include <wtf/HashMap.h>
 #include <wtf/ListHashSet.h>
-#include <wtf/Optional.h>
 
 namespace JSC {
 
index 8d337c8..1d389be 100644 (file)
@@ -31,8 +31,6 @@
 #include "WasmMemory.h"
 #include "WasmModule.h"
 #include "WasmTable.h"
-#include <wtf/Optional.h>
-#include <wtf/Ref.h>
 #include <wtf/RefPtr.h>
 #include <wtf/ThreadSafeRefCounted.h>
 
index d33b779..b39e4b3 100644 (file)
@@ -30,8 +30,6 @@
 #include "WasmFormat.h"
 #include "WasmOps.h"
 #include "WasmParser.h"
-#include <wtf/Optional.h>
-#include <wtf/Vector.h>
 
 namespace JSC { namespace Wasm {
 
index a3c41f8..b85ccea 100644 (file)
@@ -35,6 +35,7 @@
 #include "WasmOps.h"
 #include "WasmSections.h"
 #include "WasmSignatureInlines.h"
+#include <wtf/Optional.h>
 
 namespace JSC { namespace Wasm {
 
index 2c1318a..3f403dc 100644 (file)
@@ -31,8 +31,6 @@
 #include "WasmFormat.h"
 #include "WasmOps.h"
 #include "WasmParser.h"
-#include <wtf/Optional.h>
-#include <wtf/Vector.h>
 
 namespace JSC { namespace Wasm {
 
index 8c69c73..cf9430e 100644 (file)
@@ -30,6 +30,7 @@
 
 #include "WasmModuleParser.h"
 #include "WasmSectionParser.h"
+#include <wtf/Optional.h>
 #include <wtf/UnalignedAccess.h>
 
 namespace JSC { namespace Wasm {
index 8bd5e97..7b6b637 100644 (file)
@@ -30,8 +30,6 @@
 #include "WasmModuleInformation.h"
 #include "WasmParser.h"
 #include "WasmSections.h"
-#include <wtf/Expected.h>
-#include <wtf/Optional.h>
 #include <wtf/SHA1.h>
 #include <wtf/Vector.h>
 #include <wtf/text/WTFString.h>
index 51379f6..d460ad1 100644 (file)
@@ -27,6 +27,7 @@
 #include "YarrFlags.h"
 
 #include <wtf/OptionSet.h>
+#include <wtf/Optional.h>
 #include <wtf/text/StringView.h>
 
 namespace JSC { namespace Yarr {
index 7ae4dcb..38cdeeb 100644 (file)
@@ -26,7 +26,6 @@
 #pragma once
 
 #include <wtf/Forward.h>
-#include <wtf/Optional.h>
 
 namespace JSC { namespace Yarr {
 
index e6a0866..321e98f 100644 (file)
@@ -28,6 +28,8 @@
 
 #include "Yarr.h"
 #include "YarrPattern.h"
+#include <wtf/Optional.h>
+#include <wtf/text/WTFString.h>
 
 namespace JSC { namespace Yarr {
 
index 1923356..f7f1a69 100644 (file)
@@ -26,8 +26,7 @@
 #pragma once
 
 #include "Yarr.h"
-#include <wtf/Optional.h>
-#include <wtf/text/WTFString.h>
+#include <wtf/Forward.h>
 
 namespace JSC { namespace Yarr {
 
index 63f7a85..289cf12 100644 (file)
@@ -1,3 +1,25 @@
+2019-03-11  Ross Kirsling  <ross.kirsling@sony.com>
+
+        Add Optional to Forward.h.
+        https://bugs.webkit.org/show_bug.cgi?id=195586
+
+        Reviewed by Darin Adler.
+
+        * wtf/Forward.h:
+        Add forward declaration for Optional.
+
+        * wtf/CPUTime.h:
+        * wtf/Expected.h:
+        * wtf/MainThread.h:
+        * wtf/MemoryFootprint.h:
+        * wtf/URLHelpers.cpp:
+        * wtf/URLHelpers.h:
+        * wtf/cocoa/CPUTimeCocoa.cpp:
+        * wtf/fuchsia/CPUTimeFuchsia.cpp:
+        * wtf/unix/CPUTimeUnix.cpp:
+        * wtf/win/CPUTimeWin.cpp:
+        Remove unnecessary includes from headers.
+
 2019-03-11  Andy Estes  <aestes@apple.com>
 
         [Apple Pay] Use PKPaymentAuthorizationController to present the Apple Pay UI remotely from the Networking service on iOS
index e998709..d289660 100644 (file)
@@ -26,7 +26,6 @@
 #pragma once
 
 #include <wtf/MonotonicTime.h>
-#include <wtf/Optional.h>
 #include <wtf/Seconds.h>
 
 namespace WTF {
index e9b0ec9..14dee86 100644 (file)
@@ -183,7 +183,6 @@ inline namespace fundamentals_v3 {
 #include <utility>
 #include <wtf/Assertions.h>
 #include <wtf/Compiler.h>
-#include <wtf/Optional.h>
 #include <wtf/StdLibExtras.h>
 #include <wtf/Unexpected.h>
 
index 9386b6e..f6a0c0e 100644 (file)
@@ -55,6 +55,7 @@ template<typename> class Function;
 template<typename> class LazyNeverDestroyed;
 template<typename> class NeverDestroyed;
 template<typename> class OptionSet;
+template<typename> class Optional;
 template<typename T, typename = DumbPtrTraits<T>> class Ref;
 template<typename T, typename = DumbPtrTraits<T>> class RefPtr;
 template<typename> class StringBuffer;
@@ -102,6 +103,7 @@ using WTF::Hasher;
 using WTF::LazyNeverDestroyed;
 using WTF::NeverDestroyed;
 using WTF::OptionSet;
+using WTF::Optional;
 using WTF::OrdinalNumber;
 using WTF::PrintStream;
 using WTF::Ref;
index 373b6cc..f67e085 100644 (file)
@@ -32,7 +32,6 @@
 #include <stdint.h>
 #include <wtf/Forward.h>
 #include <wtf/Function.h>
-#include <wtf/Optional.h>
 #include <wtf/ThreadingPrimitives.h>
 
 namespace WTF {
index 32372f2..09491df 100644 (file)
@@ -25,8 +25,6 @@
 
 #pragma once
 
-#include <wtf/Optional.h>
-
 namespace WTF {
 
 WTF_EXPORT_PRIVATE size_t memoryFootprint();
index c943e33..3c42634 100644 (file)
@@ -35,6 +35,8 @@
 #include <unicode/uidna.h>
 #include <unicode/unorm.h>
 #include <unicode/uscript.h>
+#include <wtf/Optional.h>
+#include <wtf/text/WTFString.h>
 
 namespace WTF {
 namespace URLHelpers {
index 10782c9..73f28d4 100644 (file)
@@ -30,8 +30,6 @@
 #pragma once
 
 #include <wtf/Forward.h>
-#include <wtf/Optional.h>
-#include <wtf/text/WTFString.h>
 
 namespace WTF {
 namespace URLHelpers {
index 9c416ff..3cda335 100644 (file)
@@ -33,6 +33,7 @@
 #import <mach/task_info.h>
 #import <mach/thread_info.h>
 #import <sys/time.h>
+#import <wtf/Optional.h>
 
 namespace WTF {
 
index b64d437..81d8e2c 100644 (file)
@@ -26,6 +26,7 @@
 #include "config.h"
 #include <wtf/CPUTime.h>
 
+#include <wtf/Optional.h>
 #include <zircon/syscalls.h>
 
 namespace WTF {
index 23b6ef2..7bc4856 100644 (file)
@@ -29,6 +29,7 @@
 #include <sys/resource.h>
 #include <sys/time.h>
 #include <time.h>
+#include <wtf/Optional.h>
 
 namespace WTF {
 
index f2e3f17..d70bfb5 100644 (file)
@@ -27,6 +27,7 @@
 #include <wtf/CPUTime.h>
 
 #include <windows.h>
+#include <wtf/Optional.h>
 
 namespace WTF {
 
index 83fd9d0..2daf03e 100644 (file)
@@ -1,3 +1,97 @@
+2019-03-11  Ross Kirsling  <ross.kirsling@sony.com>
+
+        Add Optional to Forward.h.
+        https://bugs.webkit.org/show_bug.cgi?id=195586
+
+        Reviewed by Darin Adler.
+
+        * Modules/encryptedmedia/MediaKeyStatusMap.cpp:
+        * Modules/encryptedmedia/MediaKeyStatusMap.h:
+        * Modules/webauthn/apdu/ApduCommand.cpp:
+        * Modules/webauthn/apdu/ApduCommand.h:
+        * Modules/webauthn/apdu/ApduResponse.cpp:
+        * Modules/webauthn/apdu/ApduResponse.h:
+        * Modules/webauthn/fido/FidoHidMessage.cpp:
+        * Modules/webauthn/fido/FidoHidMessage.h:
+        * Modules/webauthn/fido/U2fCommandConstructor.cpp:
+        * Modules/webauthn/fido/U2fCommandConstructor.h:
+        * Modules/webdatabase/SQLTransaction.cpp:
+        * Modules/webdatabase/SQLTransaction.h:
+        * Modules/webgpu/WHLSL/Metal/WHLSLEntryPointScaffolding.cpp:
+        * Modules/webgpu/WHLSL/Metal/WHLSLEntryPointScaffolding.h:
+        * Modules/webgpu/WHLSL/WHLSLGatherEntryPointItems.h:
+        * Modules/webgpu/WHLSL/WHLSLPrepare.cpp:
+        * Modules/webgpu/WHLSL/WHLSLPrepare.h:
+        * Modules/webgpu/WebGPU.cpp:
+        * Modules/webgpu/WebGPU.h:
+        * Modules/webgpu/WebGPUCommandBuffer.cpp:
+        * Modules/webgpu/WebGPUCommandBuffer.h:
+        * animation/WebAnimation.cpp:
+        * animation/WebAnimation.h:
+        * crypto/gcrypt/GCryptUtilities.cpp:
+        * crypto/gcrypt/GCryptUtilities.h:
+        * css/CSSStyleDeclaration.cpp:
+        * css/CSSStyleDeclaration.h:
+        * dom/TextDecoder.cpp:
+        * dom/TextDecoder.h:
+        * dom/UserGestureIndicator.cpp:
+        * dom/UserGestureIndicator.h:
+        * editing/ChangeListTypeCommand.cpp:
+        * editing/ChangeListTypeCommand.h:
+        * editing/EditingStyle.cpp:
+        * editing/EditingStyle.h:
+        * html/DOMFormData.cpp:
+        * html/DOMFormData.h:
+        * html/HTMLAllCollection.cpp:
+        * html/HTMLAllCollection.h:
+        * html/HTMLAnchorElement.cpp:
+        * html/HTMLAnchorElement.h:
+        * html/ImageBitmap.cpp:
+        * html/ImageBitmap.h:
+        * html/canvas/Path2D.h:
+        * html/canvas/WebMetalEnums.cpp:
+        * html/canvas/WebMetalEnums.h:
+        * html/parser/HTMLParserIdioms.cpp:
+        * html/parser/HTMLParserIdioms.h:
+        * loader/ResourceCryptographicDigest.cpp:
+        * loader/ResourceCryptographicDigest.h:
+        * mathml/MathMLOperatorDictionary.cpp:
+        * mathml/MathMLOperatorDictionary.h:
+        * page/PerformanceEntry.cpp:
+        * page/PerformanceEntry.h:
+        * page/ResourceUsageData.h:
+        * platform/ReferrerPolicy.cpp:
+        * platform/ReferrerPolicy.h:
+        * platform/Theme.cpp:
+        * platform/Theme.h:
+        * platform/encryptedmedia/CDMInstance.h:
+        * platform/graphics/gpu/GPUDevice.cpp:
+        * platform/graphics/gpu/GPUDevice.h:
+        * platform/graphics/transforms/AffineTransform.cpp:
+        * platform/graphics/transforms/AffineTransform.h:
+        * platform/graphics/transforms/TransformState.cpp:
+        * platform/graphics/transforms/TransformState.h:
+        * platform/graphics/transforms/TransformationMatrix.cpp:
+        * platform/graphics/transforms/TransformationMatrix.h:
+        * platform/graphics/win/ImageDecoderDirect2D.cpp:
+        * platform/graphics/win/ImageDecoderDirect2D.h:
+        * platform/mediacapabilities/AudioConfiguration.h:
+        * platform/network/CacheValidation.cpp:
+        * platform/network/CacheValidation.h:
+        * platform/network/DataURLDecoder.cpp:
+        * platform/network/DataURLDecoder.h:
+        * platform/network/HTTPParsers.cpp:
+        * platform/network/HTTPParsers.h:
+        * platform/network/curl/CookieJarDB.cpp:
+        * platform/network/curl/CookieJarDB.h:
+        * platform/win/SearchPopupMenuDB.cpp:
+        * platform/win/SearchPopupMenuDB.h:
+        * rendering/ImageQualityController.cpp:
+        * rendering/ImageQualityController.h:
+        * svg/SVGToOTFFontConversion.cpp:
+        * svg/SVGToOTFFontConversion.h:
+        Remove unnecessary includes from headers.
+
 2019-03-11  Jer Noble  <jer.noble@apple.com>
 
         REGRESSION(r236281): YouTube Movies fail with "video format" error
index 6d55ff5..4ca793f 100644 (file)
@@ -34,6 +34,7 @@
 #include "JSMediaKeyStatusMap.h"
 #include "MediaKeySession.h"
 #include "SharedBuffer.h"
+#include <wtf/Optional.h>
 
 namespace WebCore {
 
index 72d6b6e..9159429 100644 (file)
@@ -33,8 +33,6 @@
 #include "BufferSource.h"
 #include "MediaKeyStatus.h"
 #include <JavaScriptCore/JSCJSValueInlines.h>
-#include <wtf/Optional.h>
-#include <wtf/Ref.h>
 #include <wtf/RefCounted.h>
 
 namespace WebCore {
index 74581d7..958b327 100644 (file)
@@ -30,6 +30,8 @@
 #include "config.h"
 #include "ApduCommand.h"
 
+#include <wtf/Optional.h>
+
 #if ENABLE(WEB_AUTHN)
 
 namespace apdu {
index c57987e..6a9e6cb 100644 (file)
@@ -32,7 +32,6 @@
 #if ENABLE(WEB_AUTHN)
 
 #include <wtf/Noncopyable.h>
-#include <wtf/Optional.h>
 #include <wtf/Vector.h>
 
 namespace apdu {
index 5145b0a..4eb7475 100644 (file)
@@ -30,6 +30,8 @@
 #include "config.h"
 #include "ApduResponse.h"
 
+#include <wtf/Optional.h>
+
 #if ENABLE(WEB_AUTHN)
 
 namespace apdu {
index 19114c6..a62d313 100644 (file)
@@ -32,7 +32,6 @@
 #if ENABLE(WEB_AUTHN)
 
 #include <wtf/Noncopyable.h>
-#include <wtf/Optional.h>
 #include <wtf/Vector.h>
 
 namespace apdu {
index c715a39..8c3d134 100644 (file)
@@ -33,6 +33,8 @@
 #if ENABLE(WEB_AUTHN)
 
 #include "FidoParsingUtils.h"
+#include <wtf/Optional.h>
+#include <wtf/Vector.h>
 
 namespace fido {
 
index 595f602..d46fa0f 100644 (file)
@@ -34,8 +34,6 @@
 #include "FidoConstants.h"
 #include "FidoHidPacket.h"
 #include <wtf/Deque.h>
-#include <wtf/Optional.h>
-#include <wtf/Vector.h>
 
 namespace fido {
 
index 21ba609..d9e7771 100644 (file)
@@ -39,6 +39,7 @@
 #include "UserVerificationRequirement.h"
 #include "WebAuthenticationConstants.h"
 #include "WebAuthenticationUtils.h"
+#include <wtf/Optional.h>
 
 namespace fido {
 using namespace WebCore;
index 45ab365..07e16e5 100644 (file)
@@ -32,7 +32,6 @@
 #if ENABLE(WEB_AUTHN)
 
 #include <wtf/Forward.h>
-#include <wtf/Optional.h>
 
 namespace WebCore {
 struct PublicKeyCredentialCreationOptions;
index 5091c83..a19c776 100644 (file)
@@ -46,6 +46,7 @@
 #include "SQLTransactionErrorCallback.h"
 #include "SQLiteTransaction.h"
 #include "VoidCallback.h"
+#include <wtf/Optional.h>
 #include <wtf/StdLibExtras.h>
 #include <wtf/Vector.h>
 
index dd5807f..e2c387a 100644 (file)
@@ -35,7 +35,6 @@
 #include "SQLValue.h"
 #include <wtf/Deque.h>
 #include <wtf/Lock.h>
-#include <wtf/Optional.h>
 
 namespace WebCore {
 
index 035284c..2854f8a 100644 (file)
@@ -36,8 +36,8 @@
 #include "WHLSLStageInOutSemantic.h"
 #include "WHLSLStructureDefinition.h"
 #include "WHLSLTypeNamer.h"
+#include <wtf/Optional.h>
 #include <wtf/text/StringBuilder.h>
-#include <wtf/text/StringConcatenate.h>
 #include <wtf/text/StringConcatenateNumbers.h>
 
 namespace WebCore {
index d87f6e9..99adca5 100644 (file)
@@ -30,7 +30,6 @@
 #include "WHLSLMappedBindings.h"
 #include "WHLSLPipelineDescriptor.h"
 #include <wtf/HashMap.h>
-#include <wtf/Optional.h>
 #include <wtf/text/WTFString.h>
 
 namespace WebCore {
index 6664e2e..fefd428 100644 (file)
@@ -28,7 +28,6 @@
 #if ENABLE(WEBGPU)
 
 #include "WHLSLSemantic.h"
-#include <wtf/Optional.h>
 #include <wtf/Vector.h>
 #include <wtf/text/WTFString.h>
 
index 4ec2bd2..dcb94be 100644 (file)
@@ -46,7 +46,7 @@
 #include "WHLSLSynthesizeConstructors.h"
 #include "WHLSLSynthesizeEnumerationFunctions.h"
 #include "WHLSLSynthesizeStructureAccessors.h"
-#include <wtf/Variant.h>
+#include <wtf/Optional.h>
 
 namespace WebCore {
 
index 0f2c846..063b974 100644 (file)
@@ -29,7 +29,6 @@
 
 #include "WHLSLMappedBindings.h"
 #include "WHLSLPipelineDescriptor.h"
-#include <wtf/Optional.h>
 #include <wtf/text/WTFString.h>
 
 namespace WebCore {
index 38f993c..16ca4d9 100644 (file)
@@ -30,6 +30,7 @@
 
 #include "GPURequestAdapterOptions.h"
 #include "JSWebGPUAdapter.h"
+#include <wtf/Optional.h>
 
 namespace WebCore {
 
index 2727037..78a38e2 100644 (file)
@@ -28,7 +28,6 @@
 #if ENABLE(WEBGPU)
 
 #include "JSDOMPromiseDeferred.h"
-#include <wtf/Optional.h>
 
 namespace WebCore {
 
index 714cd50..82ddd2d 100644 (file)
@@ -34,6 +34,7 @@
 #include "WebGPURenderPassDescriptor.h"
 #include "WebGPURenderPassEncoder.h"
 #include "WebGPUTexture.h"
+#include <wtf/Optional.h>
 
 namespace WebCore {
 
index 0a71af3..71ff121 100644 (file)
 
 #include "GPUCommandBuffer.h"
 
-#include <wtf/Optional.h>
-#include <wtf/Ref.h>
 #include <wtf/RefCounted.h>
-#include <wtf/RefPtr.h>
 
 namespace WebCore {
 
index 4c5de60..6dd8cd3 100644 (file)
@@ -1,3 +1,14 @@
+2019-03-11  Ross Kirsling  <ross.kirsling@sony.com>
+
+        Add Optional to Forward.h.
+        https://bugs.webkit.org/show_bug.cgi?id=195586
+
+        Reviewed by Darin Adler.
+
+        * pal/crypto/tasn1/Utilities.cpp:
+        * pal/crypto/tasn1/Utilities.h:
+        Remove unnecessary includes from headers.
+
 2019-03-11  Andy Estes  <aestes@apple.com>
 
         [Apple Pay] Use PKPaymentAuthorizationController to present the Apple Pay UI remotely from the Networking service on iOS
index e20df63..c438e42 100644 (file)
@@ -28,6 +28,8 @@
 #include "Utilities.h"
 
 #include <mutex>
+#include <wtf/Optional.h>
+#include <wtf/Vector.h>
 
 namespace PAL {
 namespace TASN1 {
index f8aad17..bad6e39 100644 (file)
@@ -27,8 +27,7 @@
 #pragma once
 
 #include <libtasn1.h>
-#include <wtf/Optional.h>
-#include <wtf/Vector.h>
+#include <wtf/Forward.h>
 
 namespace PAL {
 namespace TASN1 {
index af93d70..c614634 100644 (file)
@@ -36,6 +36,7 @@
 #include "KeyframeEffect.h"
 #include "Microtasks.h"
 #include "WebAnimationUtilities.h"
+#include <wtf/Optional.h>
 #include <wtf/text/WTFString.h>
 
 namespace WebCore {
index ae0e40f..c1530ac 100644 (file)
 #include "EventTarget.h"
 #include "ExceptionOr.h"
 #include "WebAnimationUtilities.h"
-#include <wtf/Forward.h>
 #include <wtf/Markable.h>
-#include <wtf/Optional.h>
-#include <wtf/Ref.h>
 #include <wtf/RefCounted.h>
-#include <wtf/RefPtr.h>
 #include <wtf/Seconds.h>
 #include <wtf/UniqueRef.h>
 #include <wtf/WeakPtr.h>
index 8094546..988951d 100644 (file)
@@ -28,6 +28,8 @@
 #include "config.h"
 #include "GCryptUtilities.h"
 
+#include <wtf/Optional.h>
+
 namespace WebCore {
 
 Optional<const char*> hashAlgorithmName(CryptoAlgorithmIdentifier identifier)
index a0c6c3d..d84d452 100644 (file)
@@ -34,7 +34,6 @@
 #include <pal/crypto/CryptoDigest.h>
 #include <pal/crypto/gcrypt/Handle.h>
 #include <pal/crypto/gcrypt/Utilities.h>
-#include <wtf/Optional.h>
 
 namespace WebCore {
 
index 5110938..118e6cb 100644 (file)
@@ -31,6 +31,8 @@
 #include "DeprecatedGlobalSettings.h"
 #include "HashTools.h"
 #include "RuntimeEnabledFeatures.h"
+#include <wtf/Optional.h>
+#include <wtf/Variant.h>
 
 namespace WebCore {
 
index c6a78f5..c2fdf21 100644 (file)
@@ -23,9 +23,6 @@
 #include "CSSPropertyNames.h"
 #include "ExceptionOr.h"
 #include "ScriptWrappable.h"
-#include <wtf/Forward.h>
-#include <wtf/Optional.h>
-#include <wtf/Variant.h>
 
 namespace WebCore {
 
index 286c4a8..83d57a4 100644 (file)
@@ -26,6 +26,7 @@
 #include "TextDecoder.h"
 
 #include "HTMLParserIdioms.h"
+#include <wtf/Optional.h>
 
 namespace WebCore {
 
index ac3dd1e..9d4c15d 100644 (file)
@@ -27,8 +27,6 @@
 #include "BufferSource.h"
 #include "ExceptionOr.h"
 #include "TextEncoding.h"
-#include <wtf/Optional.h>
-#include <wtf/Ref.h>
 #include <wtf/RefCounted.h>
 #include <wtf/text/WTFString.h>
 
index 35665dd..0460c81 100644 (file)
@@ -31,6 +31,7 @@
 #include "ResourceLoadObserver.h"
 #include <wtf/MainThread.h>
 #include <wtf/NeverDestroyed.h>
+#include <wtf/Optional.h>
 
 namespace WebCore {
 
index 15ebedf..66bf7dd 100644 (file)
@@ -28,9 +28,7 @@
 #include "DOMPasteAccess.h"
 #include <wtf/Function.h>
 #include <wtf/Noncopyable.h>
-#include <wtf/Optional.h>
 #include <wtf/RefCounted.h>
-#include <wtf/RefPtr.h>
 #include <wtf/Vector.h>
 
 namespace WebCore {
index 2bc04d0..d2b1e17 100644 (file)
@@ -30,7 +30,7 @@
 #include "HTMLElement.h"
 #include "HTMLOListElement.h"
 #include "HTMLUListElement.h"
-#include <wtf/Ref.h>
+#include <wtf/Optional.h>
 #include <wtf/RefPtr.h>
 
 namespace WebCore {
index bb96132..1439f22 100644 (file)
@@ -27,9 +27,7 @@
 
 #include "CompositeEditCommand.h"
 #include "EditAction.h"
-#include <wtf/Optional.h>
 #include <wtf/Ref.h>
-#include <wtf/RefPtr.h>
 
 namespace WebCore {
 
index 8a45ba6..d3f43a9 100644 (file)
@@ -53,6 +53,7 @@
 #include "StyleRule.h"
 #include "StyledElement.h"
 #include "VisibleUnits.h"
+#include <wtf/Optional.h>
 
 namespace WebCore {
 
index fd08033..92ae350 100644 (file)
 #include "CSSValueKeywords.h"
 #include "StyleProperties.h"
 #include "WritingDirection.h"
-#include <wtf/Forward.h>
-#include <wtf/Optional.h>
 #include <wtf/RefCounted.h>
-#include <wtf/RefPtr.h>
 #include <wtf/TriState.h>
 #include <wtf/text/WTFString.h>
 
index 1196eda..6950b5e 100644 (file)
@@ -33,6 +33,7 @@
 
 #include "HTMLFormControlElement.h"
 #include "HTMLFormElement.h"
+#include <wtf/Optional.h>
 
 namespace WebCore {
 
index fb6c112..c80488d 100644 (file)
@@ -32,8 +32,6 @@
 
 #include "File.h"
 #include "TextEncoding.h"
-#include <wtf/Forward.h>
-#include <wtf/Optional.h>
 #include <wtf/RefCounted.h>
 #include <wtf/Variant.h>
 #include <wtf/text/WTFString.h>
index 43047cd..6d8cc23 100644 (file)
@@ -29,6 +29,8 @@
 #include "Element.h"
 #include "NodeRareData.h"
 #include <JavaScriptCore/Identifier.h>
+#include <wtf/Optional.h>
+#include <wtf/Variant.h>
 
 namespace WebCore {
 
index 8ae0f9d..c141cd7 100644 (file)
@@ -26,8 +26,6 @@
 #pragma once
 
 #include "AllDescendantsCollection.h"
-#include <wtf/Optional.h>
-#include <wtf/Variant.h>
 
 namespace WebCore {
 
index d544d12..f45e5be 100644 (file)
@@ -54,6 +54,7 @@
 #include "URLUtils.h"
 #include "UserGestureIndicator.h"
 #include <wtf/IsoMallocInlines.h>
+#include <wtf/Optional.h>
 #include <wtf/text/StringBuilder.h>
 #include <wtf/text/StringConcatenateNumbers.h>
 
index 61315ce..7fe32de 100644 (file)
@@ -28,7 +28,6 @@
 #include "SharedStringHash.h"
 #include "URLUtils.h"
 #include <wtf/OptionSet.h>
-#include <wtf/Optional.h>
 
 namespace WebCore {
 
index 9dbbb4f..fcc7855 100644 (file)
@@ -45,7 +45,9 @@
 #include "RenderElement.h"
 #include "SharedBuffer.h"
 #include "TypedOMCSSImageValue.h"
+#include <wtf/Optional.h>
 #include <wtf/StdLibExtras.h>
+#include <wtf/Variant.h>
 
 namespace WebCore {
 
index dd48633..29006a2 100644 (file)
@@ -27,9 +27,7 @@
 
 #include "JSDOMPromiseDeferred.h"
 #include "ScriptWrappable.h"
-#include <wtf/Optional.h>
 #include <wtf/RefCounted.h>
-#include <wtf/Variant.h>
 
 namespace WebCore {
 
index 78fe018..bc324bb 100644 (file)
@@ -29,7 +29,6 @@
 
 #include "CanvasPath.h"
 #include "SVGPathUtilities.h"
-#include <wtf/Optional.h>
 #include <wtf/RefCounted.h>
 
 namespace WebCore {
index d0c051e..00089f1 100644 (file)
@@ -29,6 +29,7 @@
 #if ENABLE(WEBMETAL)
 
 #include "GPULegacyEnums.h"
+#include <wtf/Optional.h>
 #include <wtf/text/WTFString.h>
 
 namespace WebCore {
index 4b38b88..ed34e9a 100644 (file)
@@ -28,7 +28,6 @@
 #if ENABLE(WEBMETAL)
 
 #include <wtf/Forward.h>
-#include <wtf/Optional.h>
 
 namespace WebCore {
 
index 80e27fd..3991e75 100644 (file)
@@ -29,7 +29,9 @@
 #include "QualifiedName.h"
 #include <limits>
 #include <wtf/MathExtras.h>
+#include <wtf/Optional.h>
 #include <wtf/URL.h>
+#include <wtf/Vector.h>
 #include <wtf/dtoa.h>
 
 namespace WebCore {
index 1f63a3c..69e894d 100644 (file)
@@ -26,9 +26,6 @@
 
 #include <unicode/uchar.h>
 #include <wtf/Expected.h>
-#include <wtf/Forward.h>
-#include <wtf/Optional.h>
-#include <wtf/Vector.h>
 #include <wtf/text/StringView.h>
 
 namespace WebCore {
index af701d7..8d5c4d1 100644 (file)
@@ -28,6 +28,7 @@
 
 #include "ParsingUtilities.h"
 #include <pal/crypto/CryptoDigest.h>
+#include <wtf/Optional.h>
 #include <wtf/text/Base64.h>
 
 namespace WebCore {
index b7361bb..4d3ef0a 100644 (file)
 #pragma once
 
 #include <type_traits>
-#include <wtf/HashFunctions.h>
 #include <wtf/HashTraits.h>
 #include <wtf/Hasher.h>
-#include <wtf/Optional.h>
 #include <wtf/Vector.h>
 #include <wtf/text/WTFString.h>
 
index 4fa8062..4b68f50 100644 (file)
@@ -25,6 +25,7 @@
 
 #include "config.h"
 #include "MathMLOperatorDictionary.h"
+#include <wtf/Optional.h>
 
 #if ENABLE(MATHML)
 
index 00ef50d..2f9d843 100644 (file)
@@ -28,7 +28,7 @@
 #if ENABLE(MATHML)
 
 #include <unicode/utypes.h>
-#include <wtf/Optional.h>
+#include <wtf/Forward.h>
 
 namespace WebCore {
 
index 1c601b7..1381f80 100644 (file)
@@ -32,6 +32,7 @@
 #include "PerformanceEntry.h"
 
 #include "RuntimeEnabledFeatures.h"
+#include <wtf/Optional.h>
 
 namespace WebCore {
 
index 79db420..ed876bb 100644 (file)
@@ -32,7 +32,6 @@
 #pragma once
 
 #include "Performance.h"
-#include <wtf/Optional.h>
 #include <wtf/RefCounted.h>
 #include <wtf/text/WTFString.h>
 
index 7f8248d..9708e61 100644 (file)
@@ -29,7 +29,6 @@
 
 #include <array>
 #include <wtf/MonotonicTime.h>
-#include <wtf/Optional.h>
 #include <wtf/Vector.h>
 #include <wtf/text/WTFString.h>
 
index 9c723d0..f161854 100644 (file)
@@ -26,6 +26,7 @@
 #include "ReferrerPolicy.h"
 
 #include "HTTPParsers.h"
+#include <wtf/Optional.h>
 
 namespace WebCore {
 
index 2c5cabc..ef52137 100644 (file)
@@ -33,7 +33,6 @@
 #pragma once
 
 #include <wtf/Forward.h>
-#include <wtf/Optional.h>
 
 namespace WebCore {
 
index a7e7742..b7a7ec3 100644 (file)
@@ -29,6 +29,7 @@
 #include "GraphicsContext.h"
 #include "LengthBox.h"
 #include "LengthSize.h"
+#include <wtf/Optional.h>
 
 namespace WebCore {
 
index 6ffda18..046b0c8 100644 (file)
@@ -27,7 +27,6 @@
 
 #include "ThemeTypes.h"
 #include <wtf/Forward.h>
-#include <wtf/Optional.h>
 
 namespace WebCore {
 
index 04e8b35..07e0004 100644 (file)
 #include "CDMMessageType.h"
 #include "CDMSessionType.h"
 #include <utility>
-#include <wtf/Forward.h>
-#include <wtf/Optional.h>
 #include <wtf/RefCounted.h>
 #include <wtf/TypeCasts.h>
-#include <wtf/Vector.h>
 
 namespace WebCore {
 
index 4ce1840..8b73518 100644 (file)
@@ -44,6 +44,7 @@
 #include "GPUSwapChain.h"
 #include "GPUTexture.h"
 #include "GPUTextureDescriptor.h"
+#include <wtf/Optional.h>
 
 namespace WebCore {
 
index f55ca33..5cf4eb7 100644 (file)
@@ -29,9 +29,7 @@
 
 #include "GPUQueue.h"
 #include "GPUSwapChainDescriptor.h"
-#include <wtf/Optional.h>
 #include <wtf/RefCounted.h>
-#include <wtf/RefPtr.h>
 #include <wtf/RetainPtr.h>
 #include <wtf/WeakPtr.h>
 
index d4fecab..42c51f2 100644 (file)
@@ -32,9 +32,9 @@
 #include "FloatRect.h"
 #include "IntRect.h"
 #include "TransformationMatrix.h"
-#include <wtf/text/TextStream.h>
-
 #include <wtf/MathExtras.h>
+#include <wtf/Optional.h>
+#include <wtf/text/TextStream.h>
 
 namespace WebCore {
 
index 54f1954..dc2c497 100644 (file)
@@ -29,7 +29,7 @@
 
 #include <array>
 #include <wtf/FastMalloc.h>
-#include <wtf/Optional.h>
+#include <wtf/Forward.h>
 
 #if USE(CG)
 typedef struct CGAffineTransform CGAffineTransform;
index e763cc1..c88e9be 100644 (file)
@@ -26,6 +26,8 @@
 #include "config.h"
 #include "TransformState.h"
 
+#include <wtf/Optional.h>
+
 namespace WebCore {
 
 TransformState& TransformState::operator=(const TransformState& other)
index 80d33df..1086374 100644 (file)
@@ -31,7 +31,6 @@
 #include "FloatQuad.h"
 #include "LayoutSize.h"
 #include "TransformationMatrix.h"
-#include <wtf/Optional.h>
 
 namespace WebCore {
 
index 7b81cf0..394109d 100644 (file)
@@ -35,6 +35,7 @@
 #include <cmath>
 #include <wtf/Assertions.h>
 #include <wtf/MathExtras.h>
+#include <wtf/Optional.h>
 #include <wtf/text/TextStream.h>
 
 #if CPU(X86_64)
index eeded5f..7c8c781 100644 (file)
@@ -31,7 +31,7 @@
 #include <array>
 #include <string.h> //for memcpy
 #include <wtf/FastMalloc.h>
-#include <wtf/Optional.h>
+#include <wtf/Forward.h>
 
 #if USE(CA)
 typedef struct CATransform3D CATransform3D;
index 70478a2..3096433 100644 (file)
@@ -38,6 +38,7 @@
 #include <WinCodec.h>
 #include <d2d1.h>
 #include <wtf/NeverDestroyed.h>
+#include <wtf/Optional.h>
 
 namespace WebCore {
 
index f570c2f..b98cee0 100644 (file)
@@ -29,7 +29,6 @@
 
 #include "COMPtr.h"
 #include "ImageDecoder.h"
-#include <wtf/Optional.h>
 
 interface ID2D1RenderTarget;
 interface IWICBitmapDecoder;
index c57747f..96dc525 100644 (file)
 #include "ResourceRequest.h"
 #include "ResourceResponse.h"
 #include "SameSiteInfo.h"
+#include <wtf/Optional.h>
+#include <wtf/Vector.h>
 #include <wtf/text/StringView.h>
+#include <wtf/text/WTFString.h>
 
 namespace WebCore {
 
index e7cd0f4..8f2be57 100644 (file)
 
 #include <pal/SessionID.h>
 #include <wtf/Markable.h>
-#include <wtf/Optional.h>
-#include <wtf/Vector.h>
 #include <wtf/WallTime.h>
-#include <wtf/text/WTFString.h>
 
 namespace WebCore {
 
index 9a17f71..8112b97 100644 (file)
@@ -32,6 +32,7 @@
 #include "SharedBuffer.h"
 #include "TextEncoding.h"
 #include <wtf/MainThread.h>
+#include <wtf/Optional.h>
 #include <wtf/RunLoop.h>
 #include <wtf/URL.h>
 #include <wtf/WorkQueue.h>
index f387be9..b9711d4 100644 (file)
@@ -25,8 +25,6 @@
 
 #pragma once
 
-#include <wtf/Function.h>
-#include <wtf/Optional.h>
 #include <wtf/text/WTFString.h>
 
 #if HAVE(RUNLOOP_TIMER)
index 7fa2169..140a7d4 100644 (file)
@@ -37,9 +37,8 @@
 #include <wtf/DateMath.h>
 #include <wtf/Language.h>
 #include <wtf/NeverDestroyed.h>
-#include <wtf/text/CString.h>
+#include <wtf/Optional.h>
 #include <wtf/text/StringBuilder.h>
-#include <wtf/text/WTFString.h>
 #include <wtf/unicode/CharacterNames.h>
 
 
index ac56f28..b7ee045 100644 (file)
 
 #pragma once
 
-#include <wtf/Forward.h>
 #include <wtf/HashSet.h>
-#include <wtf/Optional.h>
 #include <wtf/WallTime.h>
 #include <wtf/text/StringHash.h>
-#include <wtf/text/WTFString.h>
 
 namespace WebCore {
 
index bdd0a1f..f19db70 100644 (file)
@@ -31,7 +31,9 @@
 #include "SQLiteFileSystem.h"
 #include <wtf/FileSystem.h>
 #include <wtf/MonotonicTime.h>
+#include <wtf/Optional.h>
 #include <wtf/URL.h>
+#include <wtf/Vector.h>
 #include <wtf/text/StringConcatenateNumbers.h>
 
 namespace WebCore {
index d585049..0c03e9d 100644 (file)
 #include "SQLiteStatement.h"
 #include <wtf/HashMap.h>
 #include <wtf/Noncopyable.h>
-#include <wtf/Optional.h>
-#include <wtf/Vector.h>
 #include <wtf/text/StringHash.h>
-#include <wtf/text/WTFString.h>
 
 namespace WebCore {
 
index 20f3356..19649c5 100644 (file)
@@ -28,6 +28,7 @@
 #include "SQLiteFileSystem.h"
 #include "SQLiteTransaction.h"
 #include <wtf/FileSystem.h>
+#include <wtf/Vector.h>
 #include <wtf/text/StringConcatenateNumbers.h>
 
 namespace WebCore {
index 1072b0e..a255cf4 100644 (file)
 #include "SQLiteDatabase.h"
 #include "SQLiteStatement.h"
 #include "SearchPopupMenu.h"
-#include <wtf/HashMap.h>
 #include <wtf/Noncopyable.h>
-#include <wtf/Optional.h>
-#include <wtf/Vector.h>
-#include <wtf/text/StringHash.h>
 #include <wtf/text/WTFString.h>
 
 namespace WebCore {
index 6d509bb..20b6a1a 100644 (file)
@@ -31,6 +31,7 @@
 #include "Page.h"
 #include "RenderBoxModelObject.h"
 #include "RenderView.h"
+#include <wtf/Optional.h>
 
 namespace WebCore {
 
index 2b1a445..cd97cc7 100644 (file)
@@ -28,7 +28,6 @@
 #include "GraphicsTypes.h"
 #include "Timer.h"
 #include <wtf/HashMap.h>
-#include <wtf/Optional.h>
 
 namespace WebCore {
 
index dfe8755..ceba3e8 100644 (file)
@@ -39,6 +39,8 @@
 #include "SVGPathParser.h"
 #include "SVGPathStringSource.h"
 #include "SVGVKernElement.h"
+#include <wtf/Optional.h>
+#include <wtf/Vector.h>
 #include <wtf/text/StringView.h>
 
 namespace WebCore {
index cc53de3..38b91dd 100644 (file)
@@ -25,8 +25,7 @@
 
 #pragma once
 
-#include <wtf/Optional.h>
-#include <wtf/Vector.h>
+#include <wtf/Forward.h>
 
 namespace WebCore {
 
index c1b488a..c252bd7 100644 (file)
@@ -1,3 +1,18 @@
+2019-03-11  Ross Kirsling  <ross.kirsling@sony.com>
+
+        Add Optional to Forward.h.
+        https://bugs.webkit.org/show_bug.cgi?id=195586
+
+        Reviewed by Darin Adler.
+
+        * Shared/RTCNetwork.cpp:
+        * Shared/RTCNetwork.h:
+        * Shared/RTCPacketOptions.cpp:
+        * Shared/RTCPacketOptions.h:
+        * UIProcess/API/APIWebsitePolicies.h:
+        * UIProcess/WebStorage/LocalStorageDatabaseTracker.h:
+        Remove unnecessary includes from headers.
+
 2019-03-11  Commit Queue  <commit-queue@webkit.org>
 
         Unreviewed, rolling out r242745 and r242756.
index 0f96e22..e4fdc50 100644 (file)
@@ -30,6 +30,7 @@
 
 #include "DataReference.h"
 #include "WebCoreArgumentCoders.h"
+#include <wtf/Optional.h>
 
 namespace WebKit {
 
index 75544a0..9a9e655 100644 (file)
@@ -29,7 +29,7 @@
 
 #include <WebCore/LibWebRTCMacros.h>
 #include <webrtc/rtc_base/network.h>
-#include <wtf/Optional.h>
+#include <wtf/Forward.h>
 
 namespace IPC {
 class Decoder;
index 83caf4e..6503107 100644 (file)
@@ -30,6 +30,7 @@
 
 #include "DataReference.h"
 #include "WebCoreArgumentCoders.h"
+#include <wtf/Optional.h>
 
 namespace WebKit {
 
index 21ee0d0..376effb 100644 (file)
@@ -29,7 +29,7 @@
 
 #include <WebCore/LibWebRTCMacros.h>
 #include <webrtc/rtc_base/asyncpacketsocket.h>
-#include <wtf/Optional.h>
+#include <wtf/Forward.h>
 
 namespace IPC {
 class Decoder;
index 347f37d..ea98d25 100644 (file)
@@ -31,7 +31,6 @@
 #include "WebsitePopUpPolicy.h"
 #include <WebCore/HTTPHeaderField.h>
 #include <wtf/OptionSet.h>
-#include <wtf/Optional.h>
 #include <wtf/Vector.h>
 
 namespace WebKit {
index 4083869..0991d71 100644 (file)
 #pragma once
 
 #include <WebCore/SecurityOriginData.h>
-#include <wtf/HashSet.h>
 #include <wtf/Markable.h>
-#include <wtf/Optional.h>
 #include <wtf/RefPtr.h>
 #include <wtf/ThreadSafeRefCounted.h>
 #include <wtf/WallTime.h>
 #include <wtf/WorkQueue.h>
-#include <wtf/text/StringHash.h>
 #include <wtf/text/WTFString.h>
 
 namespace WebKit {
index abd1994..77e3e1d 100644 (file)
@@ -1,3 +1,14 @@
+2019-03-11  Ross Kirsling  <ross.kirsling@sony.com>
+
+        Add Optional to Forward.h.
+        https://bugs.webkit.org/show_bug.cgi?id=195586
+
+        Reviewed by Darin Adler.
+
+        * TestWebKitAPI/Tests/WebCore/ApduTest.cpp:
+        * TestWebKitAPI/Tests/WebCore/FidoHidMessageTest.cpp:
+        Remove unnecessary includes from headers.
+
 2019-03-11  Simon Fraser  <simon.fraser@apple.com>
 
         Add testing API to hit-test and scroll overflow scrollers
index 3196550..9fc3ee3 100644 (file)
@@ -33,6 +33,7 @@
 
 #include <WebCore/ApduCommand.h>
 #include <WebCore/ApduResponse.h>
+#include <wtf/Optional.h>
 
 namespace TestWebKitAPI {
 
index 738de44..f58da8a 100644 (file)
@@ -35,6 +35,7 @@
 #include <WebCore/FidoHidMessage.h>
 #include <WebCore/FidoHidPacket.h>
 #include <wtf/Deque.h>
+#include <wtf/Optional.h>
 #include <wtf/Vector.h>
 
 namespace TestWebKitAPI {