Remove excessive include directives from WebCore/dom
authorannulen@yandex.ru <annulen@yandex.ru@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 20 Jun 2017 16:31:53 +0000 (16:31 +0000)
committerannulen@yandex.ru <annulen@yandex.ru@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 20 Jun 2017 16:31:53 +0000 (16:31 +0000)
https://bugs.webkit.org/show_bug.cgi?id=173591

Reviewed by Darin Adler.

No new tests needed.

* bindings/js/JSCustomElementRegistryCustom.cpp:
* dom/Attr.h:
* dom/ChildListMutationScope.h:
* dom/ContainerNodeAlgorithms.cpp:
* dom/ContainerNodeAlgorithms.h:
* dom/CustomElementRegistry.h:
* dom/DOMRect.h:
* dom/DocumentMarkerController.h:
* dom/ElementIteratorAssertions.h:
* dom/ElementRareData.h:
* dom/EventContext.h:
* dom/EventDispatcher.h:
* dom/ExtensionStyleSheets.h:
* dom/GenericEventQueue.h:
* dom/LiveNodeList.h:
* dom/LoadableClassicScript.h:
* dom/LoadableScript.h:
* dom/MutationCallback.h:
* dom/NativeNodeFilter.h:
* dom/NodeRareData.h:
* dom/PromiseRejectionEvent.h:
* dom/PseudoElement.h:
* dom/Range.h:
* dom/RegisteredEventListener.h:
* dom/RejectedPromiseTracker.cpp:
* dom/ScopedEventQueue.h:
* dom/ScriptElement.h:
* dom/ScriptExecutionContext.h:
* dom/ScriptedAnimationController.cpp:
* dom/ScriptedAnimationController.h:
* dom/SelectorQuery.h:
* dom/StaticNodeList.h:
* dom/StaticRange.h:
* dom/default/PlatformMessagePortChannel.h:
* testing/Internals.cpp:
* workers/WorkerGlobalScope.h:

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

37 files changed:
Source/WebCore/ChangeLog
Source/WebCore/bindings/js/JSCustomElementRegistryCustom.cpp
Source/WebCore/dom/Attr.h
Source/WebCore/dom/ChildListMutationScope.h
Source/WebCore/dom/ContainerNodeAlgorithms.cpp
Source/WebCore/dom/ContainerNodeAlgorithms.h
Source/WebCore/dom/CustomElementRegistry.h
Source/WebCore/dom/DOMRect.h
Source/WebCore/dom/DocumentMarkerController.h
Source/WebCore/dom/ElementIteratorAssertions.h
Source/WebCore/dom/ElementRareData.h
Source/WebCore/dom/EventContext.h
Source/WebCore/dom/EventDispatcher.h
Source/WebCore/dom/ExtensionStyleSheets.h
Source/WebCore/dom/GenericEventQueue.h
Source/WebCore/dom/LiveNodeList.h
Source/WebCore/dom/LoadableClassicScript.h
Source/WebCore/dom/LoadableScript.h
Source/WebCore/dom/MutationCallback.h
Source/WebCore/dom/NativeNodeFilter.h
Source/WebCore/dom/NodeRareData.h
Source/WebCore/dom/PromiseRejectionEvent.h
Source/WebCore/dom/PseudoElement.h
Source/WebCore/dom/Range.h
Source/WebCore/dom/RegisteredEventListener.h
Source/WebCore/dom/RejectedPromiseTracker.cpp
Source/WebCore/dom/ScopedEventQueue.h
Source/WebCore/dom/ScriptElement.h
Source/WebCore/dom/ScriptExecutionContext.h
Source/WebCore/dom/ScriptedAnimationController.cpp
Source/WebCore/dom/ScriptedAnimationController.h
Source/WebCore/dom/SelectorQuery.h
Source/WebCore/dom/StaticNodeList.h
Source/WebCore/dom/StaticRange.h
Source/WebCore/dom/default/PlatformMessagePortChannel.h
Source/WebCore/testing/Internals.cpp
Source/WebCore/workers/WorkerGlobalScope.h

index d9b9645..1396722 100644 (file)
@@ -1,5 +1,51 @@
 2017-06-20  Konstantin Tokarev  <annulen@yandex.ru>
 
+        Remove excessive include directives from WebCore/dom
+        https://bugs.webkit.org/show_bug.cgi?id=173591
+
+        Reviewed by Darin Adler.
+
+        No new tests needed.
+
+        * bindings/js/JSCustomElementRegistryCustom.cpp:
+        * dom/Attr.h:
+        * dom/ChildListMutationScope.h:
+        * dom/ContainerNodeAlgorithms.cpp:
+        * dom/ContainerNodeAlgorithms.h:
+        * dom/CustomElementRegistry.h:
+        * dom/DOMRect.h:
+        * dom/DocumentMarkerController.h:
+        * dom/ElementIteratorAssertions.h:
+        * dom/ElementRareData.h:
+        * dom/EventContext.h:
+        * dom/EventDispatcher.h:
+        * dom/ExtensionStyleSheets.h:
+        * dom/GenericEventQueue.h:
+        * dom/LiveNodeList.h:
+        * dom/LoadableClassicScript.h:
+        * dom/LoadableScript.h:
+        * dom/MutationCallback.h:
+        * dom/NativeNodeFilter.h:
+        * dom/NodeRareData.h:
+        * dom/PromiseRejectionEvent.h:
+        * dom/PseudoElement.h:
+        * dom/Range.h:
+        * dom/RegisteredEventListener.h:
+        * dom/RejectedPromiseTracker.cpp:
+        * dom/ScopedEventQueue.h:
+        * dom/ScriptElement.h:
+        * dom/ScriptExecutionContext.h:
+        * dom/ScriptedAnimationController.cpp:
+        * dom/ScriptedAnimationController.h:
+        * dom/SelectorQuery.h:
+        * dom/StaticNodeList.h:
+        * dom/StaticRange.h:
+        * dom/default/PlatformMessagePortChannel.h:
+        * testing/Internals.cpp:
+        * workers/WorkerGlobalScope.h:
+
+2017-06-20  Konstantin Tokarev  <annulen@yandex.ru>
+
         Remove excessive include directives from WebCore/css
         https://bugs.webkit.org/show_bug.cgi?id=173554
 
index afce545..038f056 100644 (file)
@@ -34,6 +34,7 @@
 #include "JSDOMConvertSequences.h"
 #include "JSDOMConvertStrings.h"
 #include "JSDOMPromiseDeferred.h"
+#include <wtf/SetForScope.h>
 
 using namespace JSC;
 
index 4d9c658..bed20de 100644 (file)
@@ -24,7 +24,7 @@
 
 #pragma once
 
-#include "ContainerNode.h"
+#include "Node.h"
 #include "QualifiedName.h"
 
 namespace WebCore {
index 945aad5..9b94371 100644 (file)
@@ -30,9 +30,9 @@
 
 #pragma once
 
+#include "ContainerNode.h"
 #include "Document.h"
 #include "MutationObserver.h"
-#include "Node.h"
 #include <memory>
 #include <wtf/Noncopyable.h>
 #include <wtf/RefCounted.h>
index 3d7e5e8..a9f4041 100644 (file)
@@ -31,6 +31,7 @@
 #include "InspectorInstrumentation.h"
 #include "NoEventDispatchAssertion.h"
 #include "ShadowRoot.h"
+#include "TypedElementDescendantIterator.h"
 
 namespace WebCore {
 
index 611a044..808b3b8 100644 (file)
 
 #pragma once
 
-#include "Document.h"
-#include "ElementIterator.h"
+#include "ContainerNode.h"
 #include "Frame.h"
-#include "NodeTraversal.h"
 #include <wtf/Assertions.h>
-#include <wtf/Ref.h>
 
 namespace WebCore {
 
index efdfc24..cd30aef 100644 (file)
@@ -28,7 +28,6 @@
 #include "JSDOMPromiseDeferred.h"
 #include "QualifiedName.h"
 #include <wtf/HashMap.h>
-#include <wtf/SetForScope.h>
 #include <wtf/text/AtomicString.h>
 #include <wtf/text/AtomicStringHash.h>
 
index 8af4f0c..ca439d1 100644 (file)
@@ -28,7 +28,6 @@
 #include "DOMRectReadOnly.h"
 #include "FloatRect.h"
 #include "IntRect.h"
-#include <wtf/Vector.h>
 
 namespace WebCore {
 
index a977578..8deb417 100644 (file)
@@ -27,7 +27,6 @@
 #pragma once
 
 #include "DocumentMarker.h"
-#include "IntRect.h"
 #include <memory>
 #include <wtf/HashMap.h>
 #include <wtf/Vector.h>
index df3703a..2d9df0b 100644 (file)
@@ -25,7 +25,6 @@
 
 #pragma once
 
-#include "Element.h"
 #include "NoEventDispatchAssertion.h"
 
 namespace WebCore {
index d509d13..3b2f29d 100644 (file)
 #include "CustomElementReactionQueue.h"
 #include "DOMTokenList.h"
 #include "DatasetDOMStringMap.h"
-#include "JSCustomElementInterface.h"
 #include "NamedNodeMap.h"
 #include "NodeRareData.h"
 #include "PseudoElement.h"
 #include "RenderElement.h"
 #include "ShadowRoot.h"
-#include "StyleInheritedData.h"
 
 namespace WebCore {
 
index 0ccebe1..97da8f8 100644 (file)
@@ -27,7 +27,6 @@
 #pragma once
 
 #include "Node.h"
-#include "TreeScope.h"
 
 namespace WebCore {
 
index d84df44..c098c22 100644 (file)
@@ -25,7 +25,6 @@
 
 #pragma once
 
-#include "SimulatedClickOptions.h"
 #include <wtf/Forward.h>
 
 namespace WebCore {
index 6be6abd..cef210a 100644 (file)
@@ -27,7 +27,6 @@
 
 #pragma once
 
-#include "Timer.h"
 #include <memory>
 #include <wtf/FastMalloc.h>
 #include <wtf/HashMap.h>
index 9b1e10f..db3b455 100644 (file)
@@ -29,7 +29,6 @@
 #include <wtf/Deque.h>
 #include <wtf/Forward.h>
 #include <wtf/RefPtr.h>
-#include <wtf/WeakPtr.h>
 
 namespace WebCore {
 
index 33f813d..613350a 100644 (file)
@@ -25,7 +25,6 @@
 
 #include "CollectionIndexCache.h"
 #include "CollectionTraversal.h"
-#include "CollectionType.h"
 #include "Document.h"
 #include "ElementDescendantIterator.h"
 #include "HTMLNames.h"
index 5c9b014..73a28b7 100644 (file)
@@ -29,7 +29,6 @@
 #include "CachedResourceHandle.h"
 #include "CachedScript.h"
 #include "LoadableScript.h"
-#include "LoadableScriptClient.h"
 #include <wtf/TypeCasts.h>
 
 namespace WebCore {
index 4316d53..fef0f93 100644 (file)
@@ -28,7 +28,6 @@
 #include "ScriptElementCachedScriptFetcher.h"
 #include <runtime/ConsoleTypes.h>
 #include <wtf/HashCountedSet.h>
-#include <wtf/RefCounted.h>
 #include <wtf/text/WTFString.h>
 
 namespace WebCore {
index 4658c19..fbc35ce 100644 (file)
@@ -30,8 +30,8 @@
 
 #pragma once
 
+#include <wtf/Ref.h>
 #include <wtf/RefCounted.h>
-#include <wtf/RefPtr.h>
 #include <wtf/Vector.h>
 
 namespace WebCore {
index c3d9167..1a1b1cd 100644 (file)
@@ -27,7 +27,7 @@
 
 #include "NodeFilter.h"
 #include "NodeFilterCondition.h"
-#include <wtf/RefPtr.h>
+#include <wtf/Ref.h>
 
 namespace WebCore {
 
index 85d51cc..89ea69a 100644 (file)
 #pragma once
 
 #include "ChildNodeList.h"
-#include "ClassCollection.h"
-#include "DOMTokenList.h"
 #include "HTMLCollection.h"
 #include "HTMLNames.h"
 #include "LiveNodeList.h"
-#include "MutationObserver.h"
 #include "MutationObserverRegistration.h"
 #include "Page.h"
 #include "QualifiedName.h"
index 1642757..d0f4297 100644 (file)
@@ -26,8 +26,8 @@
 #pragma once
 
 #include "Event.h"
-#include "JSDOMPromise.h"
 #include <heap/Strong.h>
+#include <runtime/JSPromise.h>
 
 namespace WebCore {
 
index 367ada5..7100a8e 100644 (file)
@@ -27,7 +27,6 @@
 #pragma once
 
 #include "Element.h"
-#include "Event.h"
 #include <wtf/Forward.h>
 
 namespace WebCore {
index 3c54f94..6d18578 100644 (file)
@@ -25,7 +25,6 @@
 #pragma once
 
 #include "FloatRect.h"
-#include "FragmentScriptingPermission.h"
 #include "IntRect.h"
 #include "RangeBoundaryPoint.h"
 #include <wtf/Forward.h>
index 2a58a3f..7957b2f 100644 (file)
@@ -24,7 +24,7 @@
 #pragma once
 
 #include "EventListener.h"
-#include <wtf/RefPtr.h>
+#include <wtf/Ref.h>
 
 namespace WebCore {
 
index 63e50e1..7850a99 100644 (file)
@@ -30,6 +30,7 @@
 #include "EventNames.h"
 #include "EventTarget.h"
 #include "JSDOMGlobalObject.h"
+#include "JSDOMPromise.h"
 #include "PromiseRejectionEvent.h"
 #include "ScriptExecutionContext.h"
 #include <heap/HeapInlines.h>
index 8a9dcad..311326e 100644 (file)
@@ -32,7 +32,7 @@
 
 #include <wtf/NeverDestroyed.h>
 #include <wtf/Noncopyable.h>
-#include <wtf/RefPtr.h>
+#include <wtf/Ref.h>
 #include <wtf/Vector.h>
 
 namespace WebCore {
index e5e95fd..8a884a5 100644 (file)
 
 #pragma once
 
-#include "CachedResourceClient.h"
-#include "CachedResourceHandle.h"
 #include "ContainerNode.h"
 #include "LoadableScript.h"
-#include "LoadableScriptClient.h"
-#include "Timer.h"
 #include <wtf/text/TextPosition.h>
 
 namespace WebCore {
index 705535c..b5f744e 100644 (file)
 #include "ActiveDOMObject.h"
 #include "DOMTimer.h"
 #include "SecurityContext.h"
-#include "Supplementable.h"
 #include <heap/HandleTypes.h>
 #include <runtime/ConsoleTypes.h>
-#include <wtf/CrossThreadTask.h>
 #include <wtf/Function.h>
 #include <wtf/HashSet.h>
+#include <wtf/text/WTFString.h>
 
 namespace JSC {
 class Exception;
index 819cf2e..aa6342b 100644 (file)
@@ -26,6 +26,8 @@
 #include "config.h"
 #include "ScriptedAnimationController.h"
 
+#include "Chrome.h"
+#include "ChromeClient.h"
 #include "DOMWindow.h"
 #include "DisplayRefreshMonitor.h"
 #include "DisplayRefreshMonitorManager.h"
index 650bdca..d1ff403 100644 (file)
 
 #pragma once
 
-#include "DOMTimeStamp.h"
-#include "PlatformScreen.h"
 #include "Timer.h"
 #include <wtf/OptionSet.h>
 #include <wtf/RefCounted.h>
 #include <wtf/RefPtr.h>
 #include <wtf/Vector.h>
-#include <wtf/text/AtomicString.h>
 
 #if USE(REQUEST_ANIMATION_FRAME_DISPLAY_MONITOR)
-#include "Chrome.h"
-#include "ChromeClient.h"
 #include "DisplayRefreshMonitorClient.h"
 #endif
 
index 5e3cc1f..8c1b0ed 100644 (file)
@@ -32,7 +32,6 @@
 #include <wtf/HashMap.h>
 #include <wtf/Vector.h>
 #include <wtf/text/AtomicStringHash.h>
-#include <wtf/text/CString.h>
 
 namespace WebCore {
 
index 0f1cba9..e5e0244 100644 (file)
@@ -30,7 +30,6 @@
 
 #include "Element.h"
 #include "NodeList.h"
-#include <wtf/RefPtr.h>
 #include <wtf/Vector.h>
 
 namespace WebCore {
index 9a74eb3..772bf79 100644 (file)
@@ -25,8 +25,8 @@
 
 #pragma once
 
+#include <wtf/Ref.h>
 #include <wtf/RefCounted.h>
-#include <wtf/RefPtr.h>
 
 namespace WebCore {
 
index 4e4916a..15d319b 100644 (file)
@@ -32,7 +32,6 @@
 
 #include "MessagePortChannel.h"
 #include <wtf/MessageQueue.h>
-#include <wtf/Threading.h>
 
 namespace WebCore {
 
index a80e7d3..f415e5d 100644 (file)
@@ -41,6 +41,7 @@
 #include "CSSSupportsRule.h"
 #include "CachedImage.h"
 #include "CachedResourceLoader.h"
+#include "Chrome.h"
 #include "ComposedTreeIterator.h"
 #include "Cursor.h"
 #include "DOMPath.h"
index a6ca403..92e7e26 100644 (file)
@@ -29,6 +29,7 @@
 #include "Base64Utilities.h"
 #include "EventTarget.h"
 #include "ScriptExecutionContext.h"
+#include "Supplementable.h"
 #include "URL.h"
 #include "WorkerEventQueue.h"
 #include "WorkerScriptController.h"