Stop #include-ing all of JavaScriptCore in every DOM-related file
authorggaren@apple.com <ggaren@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 8 Apr 2013 23:41:02 +0000 (23:41 +0000)
committerggaren@apple.com <ggaren@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 8 Apr 2013 23:41:02 +0000 (23:41 +0000)
commit6b810f97bf6dadbc04c3b32d1d8cc82be095e79e
tree0d87d5066ff5d04dc0cbfa7450d9e6158cf9ff24
parent7cdb108d50b410cb4220a5948c917b3f35436909
Stop #include-ing all of JavaScriptCore in every DOM-related file
https://bugs.webkit.org/show_bug.cgi?id=114220

Reviewed by Sam Weinig.

../JavaScriptCore:

I separated WeakInlines.h from Weak.h so WebCore data types that need
to declare a Weak<T> data member don't have to #include all of the
infrastructure for accessing that data member.

This also required separating Weak<T> from PassWeak<T> by removing the
WeakImplAccessor class template and pushing code down into its subclasses.

* API/JSWeakObjectMapRefPrivate.cpp:
* JavaScriptCore.xcodeproj/project.pbxproj:
* bytecode/UnlinkedCodeBlock.h:
* heap/PassWeak.h:
(JSC):
(PassWeak):
(JSC::::PassWeak):
(JSC::::operator):
(JSC::::get):
* heap/SlotVisitorInlines.h:
* heap/Weak.h:
(JSC):
(Weak):
* heap/WeakInlines.h: Copied from Source/JavaScriptCore/heap/Weak.h.
(JSC):
(JSC::::Weak):
(JSC::::operator):
(JSC::::get):
(JSC::::was):
(JSC::weakClear):
* jit/JITThunks.h:
* runtime/RegExpCache.h:
* runtime/Structure.h:
* runtime/WeakGCMap.h:

../WebCore:

I separated ScriptWrappableInlines.h from ScriptWrappable.h so
WebCore data types that inherit from ScriptWrappable don't
have to #include all of the infrastructure for accessing that data member.

* ForwardingHeaders/heap/PassWeak.h: Added.
* ForwardingHeaders/heap/WeakInlines.h: Added.
* WebCore.xcodeproj/project.pbxproj:
* bindings/js/DOMWrapperWorld.h:
* bindings/js/JSDOMBinding.h:
(JSC):
* bindings/js/JSEventListener.h:
* bindings/js/JSMutationCallback.cpp:
* bindings/js/JSNodeFilterCondition.h:
* bindings/js/ScriptWrappable.h:
(JSC):
(WebCore):
(ScriptWrappable):
* bindings/js/ScriptWrappableInlines.h: Added.
(WebCore):
(WebCore::ScriptWrappable::wrapper):
(WebCore::ScriptWrappable::setWrapper):
(WebCore::ScriptWrappable::clearWrapper):
* bridge/qt/qt_instance.h:
* bridge/qt/qt_runtime.h:
* bridge/runtime_root.cpp:
* bridge/runtime_root.h:
* css/StylePropertySet.cpp:
* dom/LiveNodeList.cpp:
(WebCore::LiveNodeListBase::reportMemoryUsage):
* dom/Node.cpp:
(WebCore::Node::reportMemoryUsage):
* inspector/InspectorDebuggerAgent.cpp:
* inspector/NetworkResourcesData.cpp:
* loader/cache/CachedSVGDocument.cpp:
* xml/XMLHttpRequest.cpp:
(WebCore::XMLHttpRequest::reportMemoryUsage):

../WebKit2:

* Shared/WebCoreArgumentCoders.cpp:
* WebProcess/Plugins/Netscape/NPRuntimeObjectMap.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@147962 268f45cc-cd09-0410-ab3c-d52691b4dbfc
47 files changed:
Source/JavaScriptCore/API/JSWeakObjectMapRefPrivate.cpp
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj
Source/JavaScriptCore/bytecode/UnlinkedCodeBlock.h
Source/JavaScriptCore/heap/PassWeak.h
Source/JavaScriptCore/heap/SlotVisitorInlines.h
Source/JavaScriptCore/heap/Weak.h
Source/JavaScriptCore/heap/WeakInlines.h [new file with mode: 0644]
Source/JavaScriptCore/jit/JITThunks.h
Source/JavaScriptCore/runtime/RegExpCache.h
Source/JavaScriptCore/runtime/Structure.h
Source/JavaScriptCore/runtime/WeakGCMap.h
Source/WebCore/ChangeLog
Source/WebCore/ForwardingHeaders/heap/PassWeak.h [new file with mode: 0644]
Source/WebCore/ForwardingHeaders/heap/WeakInlines.h [new file with mode: 0644]
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/bindings/js/DOMWrapperWorld.h
Source/WebCore/bindings/js/JSDOMBinding.h
Source/WebCore/bindings/js/JSEventListener.h
Source/WebCore/bindings/js/JSMutationCallback.cpp
Source/WebCore/bindings/js/JSNodeFilterCondition.h
Source/WebCore/bindings/js/ScriptWrappable.h
Source/WebCore/bindings/js/ScriptWrappableInlines.h [new file with mode: 0644]
Source/WebCore/bridge/qt/qt_instance.h
Source/WebCore/bridge/qt/qt_runtime.h
Source/WebCore/bridge/runtime_root.cpp
Source/WebCore/bridge/runtime_root.h
Source/WebCore/css/PropertySetCSSStyleDeclaration.h
Source/WebCore/css/StylePropertySet.cpp
Source/WebCore/css/WebKitCSSMatrix.cpp
Source/WebCore/dom/ClientRect.cpp
Source/WebCore/dom/ClientRectList.cpp
Source/WebCore/dom/DOMStringMap.cpp
Source/WebCore/dom/DOMStringMap.h
Source/WebCore/dom/Event.cpp
Source/WebCore/dom/LiveNodeList.cpp
Source/WebCore/dom/MutationRecord.cpp
Source/WebCore/dom/Node.cpp
Source/WebCore/fileapi/FileList.cpp
Source/WebCore/inspector/InspectorDebuggerAgent.cpp
Source/WebCore/inspector/NetworkResourcesData.cpp
Source/WebCore/loader/cache/CachedSVGDocument.cpp
Source/WebCore/page/Crypto.cpp
Source/WebCore/xml/XMLHttpRequest.cpp
Source/WebKit2/ChangeLog
Source/WebKit2/Shared/WebCoreArgumentCoders.cpp
Source/WebKit2/WebProcess/Plugins/Netscape/NPRuntimeObjectMap.h