Remove excessive headers from WebCore/{bindings,css,dom}
authorannulen@yandex.ru <annulen@yandex.ru@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Jun 2017 19:07:32 +0000 (19:07 +0000)
committerannulen@yandex.ru <annulen@yandex.ru@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Jun 2017 19:07:32 +0000 (19:07 +0000)
https://bugs.webkit.org/show_bug.cgi?id=173766

Reviewed by Simon Fraser.

Source/WebCore:

No new tests needed.

* ForwardingHeaders/runtime/ThrowScope.h: Added.
* Modules/plugins/QuickTimePluginReplacement.mm:
* bindings/js/CachedScriptSourceProvider.h:
* bindings/js/JSCommandLineAPIHostCustom.cpp:
* bindings/js/JSCustomXPathNSResolver.cpp:
* bindings/js/JSDOMConstructorNotConstructable.h:
* bindings/js/JSDOMConvertBase.h:
* bindings/js/JSDOMConvertBufferSource.h:
* bindings/js/JSDOMConvertInterface.h:
* bindings/js/JSDOMConvertStrings.h:
* bindings/js/JSDOMConvertUnion.h:
* bindings/js/JSDOMConvertVariadic.h:
* bindings/js/JSDOMConvertWebGL.h:
* bindings/js/JSDOMExceptionHandling.h:
* bindings/js/JSDOMIterator.h:
* bindings/js/JSDOMMapLike.h:
* bindings/js/JSDOMWindowBase.cpp:
* bindings/js/JSDOMWindowCustom.cpp:
* bindings/js/JSDOMWindowCustom.h:
* bindings/js/JSDOMWindowProperties.h:
* bindings/js/JSDOMWrapperCache.h:
* bindings/js/JSLazyEventListener.cpp:
* bindings/js/JSMainThreadExecStateInstrumentation.h:
* bindings/js/JSMediaListCustom.h:
* bindings/js/JSNodeCustom.h:
* bindings/js/JSNodeListCustom.h:
* bindings/js/JSVideoTrackListCustom.cpp:
* bindings/js/ScheduledAction.h:
* bindings/js/ScriptSourceCode.h:
* bindings/js/SerializedScriptValue.h:
* bindings/js/WebCoreJSClientData.h:
* css/CSSFontFeatureValue.h:
* css/CSSPrimitiveValue.h:
* css/CSSStyleSheet.h:
* css/CSSValue.h:
* css/StyleBuilderCustom.h:
* dom/ContainerNodeAlgorithms.h:
* dom/DataTransfer.h:
* dom/Node.h:
* dom/NodeRareData.h:
* dom/Position.h:
* dom/RenderedDocumentMarker.h:

Source/WebKit/mac:

* DOM/DOMInternal.mm:

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

45 files changed:
Source/WebCore/ChangeLog
Source/WebCore/ForwardingHeaders/runtime/ThrowScope.h [new file with mode: 0644]
Source/WebCore/Modules/plugins/QuickTimePluginReplacement.mm
Source/WebCore/bindings/js/CachedScriptSourceProvider.h
Source/WebCore/bindings/js/JSCommandLineAPIHostCustom.cpp
Source/WebCore/bindings/js/JSCustomXPathNSResolver.cpp
Source/WebCore/bindings/js/JSDOMConstructorNotConstructable.h
Source/WebCore/bindings/js/JSDOMConvertBase.h
Source/WebCore/bindings/js/JSDOMConvertBufferSource.h
Source/WebCore/bindings/js/JSDOMConvertInterface.h
Source/WebCore/bindings/js/JSDOMConvertStrings.h
Source/WebCore/bindings/js/JSDOMConvertUnion.h
Source/WebCore/bindings/js/JSDOMConvertVariadic.h
Source/WebCore/bindings/js/JSDOMConvertWebGL.h
Source/WebCore/bindings/js/JSDOMExceptionHandling.h
Source/WebCore/bindings/js/JSDOMIterator.h
Source/WebCore/bindings/js/JSDOMMapLike.h
Source/WebCore/bindings/js/JSDOMWindowBase.cpp
Source/WebCore/bindings/js/JSDOMWindowCustom.cpp
Source/WebCore/bindings/js/JSDOMWindowCustom.h
Source/WebCore/bindings/js/JSDOMWindowProperties.h
Source/WebCore/bindings/js/JSDOMWrapperCache.h
Source/WebCore/bindings/js/JSLazyEventListener.cpp
Source/WebCore/bindings/js/JSMainThreadExecStateInstrumentation.h
Source/WebCore/bindings/js/JSMediaListCustom.h
Source/WebCore/bindings/js/JSNodeCustom.h
Source/WebCore/bindings/js/JSNodeListCustom.h
Source/WebCore/bindings/js/JSVideoTrackListCustom.cpp
Source/WebCore/bindings/js/ScheduledAction.h
Source/WebCore/bindings/js/ScriptSourceCode.h
Source/WebCore/bindings/js/SerializedScriptValue.h
Source/WebCore/bindings/js/WebCoreJSClientData.h
Source/WebCore/css/CSSFontFeatureValue.h
Source/WebCore/css/CSSPrimitiveValue.h
Source/WebCore/css/CSSStyleSheet.h
Source/WebCore/css/CSSValue.h
Source/WebCore/css/StyleBuilderCustom.h
Source/WebCore/dom/ContainerNodeAlgorithms.h
Source/WebCore/dom/DataTransfer.h
Source/WebCore/dom/Node.h
Source/WebCore/dom/NodeRareData.h
Source/WebCore/dom/Position.h
Source/WebCore/dom/RenderedDocumentMarker.h
Source/WebKit/mac/ChangeLog
Source/WebKit/mac/DOM/DOMInternal.mm

index 2c847cc..375afe0 100644 (file)
@@ -1,3 +1,55 @@
+2017-06-23  Konstantin Tokarev  <annulen@yandex.ru>
+
+        Remove excessive headers from WebCore/{bindings,css,dom}
+        https://bugs.webkit.org/show_bug.cgi?id=173766
+
+        Reviewed by Simon Fraser.
+
+        No new tests needed.
+
+        * ForwardingHeaders/runtime/ThrowScope.h: Added.
+        * Modules/plugins/QuickTimePluginReplacement.mm:
+        * bindings/js/CachedScriptSourceProvider.h:
+        * bindings/js/JSCommandLineAPIHostCustom.cpp:
+        * bindings/js/JSCustomXPathNSResolver.cpp:
+        * bindings/js/JSDOMConstructorNotConstructable.h:
+        * bindings/js/JSDOMConvertBase.h:
+        * bindings/js/JSDOMConvertBufferSource.h:
+        * bindings/js/JSDOMConvertInterface.h:
+        * bindings/js/JSDOMConvertStrings.h:
+        * bindings/js/JSDOMConvertUnion.h:
+        * bindings/js/JSDOMConvertVariadic.h:
+        * bindings/js/JSDOMConvertWebGL.h:
+        * bindings/js/JSDOMExceptionHandling.h:
+        * bindings/js/JSDOMIterator.h:
+        * bindings/js/JSDOMMapLike.h:
+        * bindings/js/JSDOMWindowBase.cpp:
+        * bindings/js/JSDOMWindowCustom.cpp:
+        * bindings/js/JSDOMWindowCustom.h:
+        * bindings/js/JSDOMWindowProperties.h:
+        * bindings/js/JSDOMWrapperCache.h:
+        * bindings/js/JSLazyEventListener.cpp:
+        * bindings/js/JSMainThreadExecStateInstrumentation.h:
+        * bindings/js/JSMediaListCustom.h:
+        * bindings/js/JSNodeCustom.h:
+        * bindings/js/JSNodeListCustom.h:
+        * bindings/js/JSVideoTrackListCustom.cpp:
+        * bindings/js/ScheduledAction.h:
+        * bindings/js/ScriptSourceCode.h:
+        * bindings/js/SerializedScriptValue.h:
+        * bindings/js/WebCoreJSClientData.h:
+        * css/CSSFontFeatureValue.h:
+        * css/CSSPrimitiveValue.h:
+        * css/CSSStyleSheet.h:
+        * css/CSSValue.h:
+        * css/StyleBuilderCustom.h:
+        * dom/ContainerNodeAlgorithms.h:
+        * dom/DataTransfer.h:
+        * dom/Node.h:
+        * dom/NodeRareData.h:
+        * dom/Position.h:
+        * dom/RenderedDocumentMarker.h:
+
 2017-06-23  Basuke Suzuki  <Basuke.Suzuki@sony.com>
 
         Fix broken WinCairo build
diff --git a/Source/WebCore/ForwardingHeaders/runtime/ThrowScope.h b/Source/WebCore/ForwardingHeaders/runtime/ThrowScope.h
new file mode 100644 (file)
index 0000000..905a4e8
--- /dev/null
@@ -0,0 +1,4 @@
+#ifndef WebCore_FWD_ThrowScope_h
+#define WebCore_FWD_ThrowScope_h
+#include <JavaScriptCore/ThrowScope.h>
+#endif
index 8430f13..f4dc88e 100644 (file)
@@ -46,6 +46,7 @@
 #import "ScriptController.h"
 #import "ScriptSourceCode.h"
 #import "Settings.h"
+#import "ShadowRoot.h"
 #import "UserAgentScripts.h"
 #import <AVFoundation/AVMetadataItem.h>
 #import <Foundation/NSString.h>
index 47494e7..7674b67 100644 (file)
@@ -29,7 +29,6 @@
 #include "CachedResourceHandle.h"
 #include "CachedScript.h"
 #include "CachedScriptFetcher.h"
-#include <parser/SourceCode.h>
 #include <parser/SourceProvider.h>
 
 namespace WebCore {
index d89b305..6c0d741 100644 (file)
@@ -35,6 +35,7 @@
 
 #include "CommandLineAPIHost.h"
 #include "Database.h"
+#include "Document.h"
 #include "InspectorDOMAgent.h"
 #include "JSDatabase.h"
 #include "JSEventListener.h"
index 2f14dff..f93cd52 100644 (file)
@@ -27,6 +27,7 @@
 #include "JSCustomXPathNSResolver.h"
 
 #include "CommonVM.h"
+#include "DOMWindow.h"
 #include "Document.h"
 #include "Frame.h"
 #include "JSDOMExceptionHandling.h"
index 399742b..9069080 100644 (file)
@@ -20,7 +20,6 @@
 #pragma once
 
 #include "JSDOMConstructorBase.h"
-#include "JSDOMExceptionHandling.h"
 
 namespace WebCore {
 
index aa33fbc..3353268 100644 (file)
@@ -26,6 +26,7 @@
 #pragma once
 
 #include "JSDOMExceptionHandling.h"
+#include <runtime/Error.h>
 
 namespace WebCore {
 
index b037800..f7551ab 100644 (file)
@@ -28,7 +28,6 @@
 #include "BufferSource.h"
 #include "IDLTypes.h"
 #include "JSDOMConvertBase.h"
-#include "JSDOMExceptionHandling.h"
 #include "JSDOMWrapperCache.h"
 #include "JSDynamicDowncast.h"
 #include <runtime/JSTypedArrays.h>
index f5d5bc2..aafed02 100644 (file)
@@ -27,7 +27,7 @@
 
 #include "IDLTypes.h"
 #include "JSDOMConvertBase.h"
-#include "JSDOMExceptionHandling.h"
+#include <runtime/Error.h>
 
 namespace WebCore {
 
index e65448e..5284c0c 100644 (file)
@@ -27,7 +27,6 @@
 
 #include "IDLTypes.h"
 #include "JSDOMConvertBase.h"
-#include "JSDOMExceptionHandling.h"
 
 namespace WebCore {
 
index 8383937..9a8b9eb 100644 (file)
@@ -31,6 +31,7 @@
 #include "JSDOMConvertBufferSource.h"
 #include "JSDOMConvertNull.h"
 #include <runtime/IteratorOperations.h>
+#include <wtf/Variant.h>
 
 namespace WebCore {
 
index 79b2b9d..47ea962 100644 (file)
@@ -26,7 +26,6 @@
 #pragma once
 
 #include "IDLTypes.h"
-#include "JSDOMConvertBase.h"
 
 namespace WebCore {
 
index c2740d5..4adcef5 100644 (file)
@@ -28,7 +28,6 @@
 #if ENABLE(WEBGL)
 
 #include "IDLTypes.h"
-#include "JSDOMConvertBase.h"
 
 namespace WebCore {
 
index 0300213..6703541 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "ExceptionCode.h"
 #include "ExceptionOr.h"
-#include <runtime/Error.h>
+#include <runtime/ThrowScope.h>
 
 namespace JSC {
 class CatchScope;
index 778577d..1214dd5 100644 (file)
@@ -28,7 +28,6 @@
 
 #include "JSDOMConvert.h"
 #include <runtime/IteratorPrototype.h>
-#include <runtime/JSDestructibleObject.h>
 #include <type_traits>
 
 namespace WebCore {
index babef83..d293667 100644 (file)
 
 #pragma once
 
-#include "ActiveDOMCallback.h"
 #include "JSDOMBinding.h"
 #include "JSDOMConvert.h"
 #include "JSDOMGuardedObject.h"
-#include "ScriptExecutionContext.h"
 #include <builtins/BuiltinNames.h>
 #include <runtime/CommonIdentifiers.h>
 #include <runtime/JSMap.h>
index 8aeaa84..f2e8a25 100644 (file)
@@ -28,6 +28,7 @@
 #include "Chrome.h"
 #include "CommonVM.h"
 #include "DOMWindow.h"
+#include "Document.h"
 #include "Frame.h"
 #include "InspectorController.h"
 #include "JSDOMBindingSecurity.h"
index af4aa10..9eebfa1 100644 (file)
@@ -30,6 +30,7 @@
 #include "JSDOMConvertNullable.h"
 #include "JSDOMConvertNumbers.h"
 #include "JSDOMConvertStrings.h"
+#include "JSDOMWindowProxy.h"
 #include "JSEvent.h"
 #include "JSEventListener.h"
 #include "JSHTMLAudioElement.h"
index 58d9505..ebfc54a 100644 (file)
@@ -19,7 +19,6 @@
 #pragma once
 
 #include "JSDOMWindow.h"
-#include "JSDOMWindowProxy.h"
 
 namespace WebCore {
 
index cf7e92d..9194072 100644 (file)
@@ -25,7 +25,6 @@
 
 #pragma once
 
-#include "DOMWindow.h"
 #include "JSDOMWindow.h"
 #include "JSDOMWrapper.h"
 
index 263c6f1..fb31677 100644 (file)
@@ -34,7 +34,6 @@
 #include <heap/WeakInlines.h>
 #include <runtime/JSArrayBuffer.h>
 #include <runtime/TypedArrayInlines.h>
-#include <runtime/TypedArrays.h>
 
 namespace WebCore {
 
index cfcafef..e0b4dba 100644 (file)
 #include "JSLazyEventListener.h"
 
 #include "CachedScriptFetcher.h"
+#include "ContainerNode.h"
 #include "ContentSecurityPolicy.h"
+#include "Document.h"
+#include "Element.h"
 #include "Frame.h"
 #include "JSNode.h"
+#include "QualifiedName.h"
 #include "ScriptController.h"
 #include <runtime/FunctionConstructor.h>
 #include <runtime/IdentifierInlines.h>
index 4ad6e32..b580e97 100644 (file)
@@ -28,7 +28,6 @@
 
 #include "InspectorInstrumentation.h"
 #include "JSMainThreadExecState.h"
-#include <runtime/FunctionExecutable.h>
 
 namespace WebCore {
 
index af934b7..ff019a1 100644 (file)
@@ -27,7 +27,6 @@
 
 #include "CSSRule.h"
 #include "CSSStyleSheet.h"
-#include "JSCSSRuleCustom.h"
 #include "JSStyleSheetCustom.h"
 #include "MediaList.h"
 
index 6779dad..2bfc664 100644 (file)
@@ -27,7 +27,6 @@
 
 #include "JSDOMBinding.h"
 #include "JSNode.h"
-#include "ShadowRoot.h"
 
 namespace WebCore {
 
index 845bb40..90c9cd5 100644 (file)
@@ -26,7 +26,6 @@
 #pragma once
 
 #include "JSDOMBinding.h"
-#include "JSNodeList.h"
 
 namespace WebCore {
 
index a2a3618..02d84ec 100644 (file)
@@ -27,8 +27,8 @@
 
 #if ENABLE(VIDEO_TRACK)
 
+#include "Element.h"
 #include "JSVideoTrackList.h"
-
 #include "JSNodeCustom.h"
 
 using namespace JSC;
index 7681181..b7710d9 100644 (file)
@@ -23,7 +23,6 @@
 #include <heap/Strong.h>
 #include <heap/StrongInlines.h>
 #include <memory>
-#include <runtime/JSCell.h>
 #include <wtf/Vector.h>
 #include <wtf/text/WTFString.h>
 
index 06a8edc..a3105fb 100644 (file)
@@ -35,6 +35,7 @@
 #include "CachedScriptFetcher.h"
 #include "CachedScriptSourceProvider.h"
 #include "URL.h"
+#include <parser/SourceCode.h>
 #include <parser/SourceProvider.h>
 #include <wtf/text/TextPosition.h>
 #include <wtf/RefPtr.h>
index 3e13da0..bcb5b70 100644 (file)
@@ -32,7 +32,6 @@
 #include <runtime/JSCJSValue.h>
 #include <wtf/Forward.h>
 #include <wtf/Function.h>
-#include <wtf/RefCounted.h>
 #include <wtf/text/WTFString.h>
 
 typedef const struct OpaqueJSContext* JSContextRef;
index 47243c6..aca8a5d 100644 (file)
@@ -24,7 +24,6 @@
 #include "DOMWrapperWorld.h"
 #include "WebCoreBuiltinNames.h"
 #include "WebCoreJSBuiltins.h"
-#include "WebCoreTypedArrayController.h"
 #include <wtf/HashSet.h>
 #include <wtf/RefPtr.h>
 
index a66013c..f444fe3 100644 (file)
@@ -26,7 +26,6 @@
 #pragma once
 
 #include "CSSValue.h"
-#include "FontSelectionAlgorithm.h"
 #include "FontTaggedSettings.h"
 
 namespace WebCore {
index 7ad74e6..9483706 100644 (file)
@@ -25,6 +25,7 @@
 #include "CSSValue.h"
 #include "CSSValueKeywords.h"
 #include "Color.h"
+#include "ExceptionOr.h"
 #include "LayoutUnit.h"
 #include <utility>
 #include <wtf/Forward.h>
index 8b9df6d..d3694b8 100644 (file)
@@ -20,7 +20,6 @@
 
 #pragma once
 
-#include "CSSParserMode.h"
 #include "ExceptionOr.h"
 #include "StyleSheet.h"
 #include <memory>
index be929ec..6035cb3 100644 (file)
@@ -20,7 +20,6 @@
 
 #pragma once
 
-#include "ExceptionOr.h"
 #include "URLHash.h"
 #include <wtf/Function.h>
 #include <wtf/HashMap.h>
index f83f419..9e1d44e 100644 (file)
@@ -42,7 +42,6 @@
 #include "Frame.h"
 #include "HTMLElement.h"
 #include "Rect.h"
-#include "RenderTheme.h"
 #include "SVGElement.h"
 #include "SVGRenderStyle.h"
 #include "StyleBuilderConverter.h"
index 808b3b8..42d66be 100644 (file)
@@ -22,7 +22,6 @@
 #pragma once
 
 #include "ContainerNode.h"
-#include "Frame.h"
 #include <wtf/Assertions.h>
 
 namespace WebCore {
index d24b9da..9d8b91e 100644 (file)
@@ -27,7 +27,6 @@
 #include "DataTransferAccessPolicy.h"
 #include "DragActions.h"
 #include "DragImage.h"
-#include "IntPoint.h"
 #include <wtf/text/WTFString.h>
 
 namespace WebCore {
index 23dc9db..39289c6 100644 (file)
@@ -35,7 +35,6 @@
 #include <wtf/Forward.h>
 #include <wtf/ListHashSet.h>
 #include <wtf/MainThread.h>
-#include <wtf/TypeCasts.h>
 
 // This needs to be here because Document.h also depends on it.
 #define DUMP_NODE_STATISTICS 0
index 89ea69a..6803fb0 100644 (file)
 #include <wtf/HashSet.h>
 #include <wtf/text/AtomicString.h>
 
-#if ENABLE(VIDEO_TRACK)
-#include "TextTrack.h"
-#endif
-
 namespace WebCore {
 
 class LabelsNodeList;
index f7c42bb..2cf6802 100644 (file)
@@ -28,7 +28,6 @@
 #include "ContainerNode.h"
 #include "EditingBoundary.h"
 #include "TextAffinity.h"
-#include "TextFlags.h"
 #include <wtf/Assertions.h>
 #include <wtf/RefPtr.h>
 
index 89e6493..e212ecc 100644 (file)
@@ -26,7 +26,6 @@
 
 #pragma once
 
-#include "DocumentMarker.h"
 #include <wtf/Vector.h>
 
 namespace WebCore {
index 7b8a172..dd8ae8c 100644 (file)
@@ -1,3 +1,12 @@
+2017-06-23  Konstantin Tokarev  <annulen@yandex.ru>
+
+        Remove excessive headers from WebCore/{bindings,css,dom}
+        https://bugs.webkit.org/show_bug.cgi?id=173766
+
+        Reviewed by Simon Fraser.
+
+        * DOM/DOMInternal.mm:
+
 2017-06-22  Daniel Bates  <dabates@apple.com>
 
         Make FrameLoadRequest a move-only type
index cacc750..6b179eb 100644 (file)
@@ -26,6 +26,7 @@
 #import "DOMInternal.h"
 
 #import "DOMNodeInternal.h"
+#import <WebCore/Document.h>
 #import <WebCore/Frame.h>
 #import <WebCore/JSNode.h>
 #import <WebCore/ScriptController.h>