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):
(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: