diff options
Diffstat (limited to 'WebCore/inspector/InjectedScriptHost.cpp')
-rw-r--r-- | WebCore/inspector/InjectedScriptHost.cpp | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/WebCore/inspector/InjectedScriptHost.cpp b/WebCore/inspector/InjectedScriptHost.cpp index d5bbd1c..13e156a 100644 --- a/WebCore/inspector/InjectedScriptHost.cpp +++ b/WebCore/inspector/InjectedScriptHost.cpp @@ -38,6 +38,7 @@ #include "Frame.h" #include "FrameLoader.h" #include "HTMLFrameOwnerElement.h" +#include "InjectedScript.h" #include "InspectorClient.h" #include "InspectorController.h" #include "InspectorDOMAgent.h" @@ -47,7 +48,7 @@ #include "ScriptArray.h" #include "ScriptFunctionCall.h" -#if ENABLE(JAVASCRIPT_DEBUGGER) +#if ENABLE(JAVASCRIPT_DEBUGGER) && USE(JSC) #include "JavaScriptCallFrame.h" #include "JavaScriptDebugServer.h" using namespace JSC; @@ -131,7 +132,7 @@ long InjectedScriptHost::pushNodeByPathToFrontend(const String& path) return domAgent->pushNodePathToFrontend(node); } -#if ENABLE(JAVASCRIPT_DEBUGGER) +#if ENABLE(JAVASCRIPT_DEBUGGER) && USE(JSC) JavaScriptCallFrame* InjectedScriptHost::currentCallFrame() const { return JavaScriptDebugServer::shared().currentCallFrame(); @@ -167,7 +168,7 @@ void InjectedScriptHost::reportDidDispatchOnInjectedScript(long callId, const St frontend->didDispatchOnInjectedScript(callId, result, isException); } -ScriptObject InjectedScriptHost::injectedScriptForId(long id) +InjectedScript InjectedScriptHost::injectedScriptForId(long id) { return m_idToInjectedScript.get(id); } @@ -180,13 +181,13 @@ void InjectedScriptHost::discardInjectedScripts() void InjectedScriptHost::releaseWrapperObjectGroup(long injectedScriptId, const String& objectGroup) { if (injectedScriptId) { - ScriptObject injectedScript = m_idToInjectedScript.get(injectedScriptId); + InjectedScript injectedScript = m_idToInjectedScript.get(injectedScriptId); if (!injectedScript.hasNoValue()) - releaseWrapperObjectGroup(injectedScript, objectGroup); + injectedScript.releaseWrapperObjectGroup(objectGroup); } else { // Iterate over all injected scripts if injectedScriptId is not specified. for (IdToInjectedScriptMap::iterator it = m_idToInjectedScript.begin(); it != m_idToInjectedScript.end(); ++it) - releaseWrapperObjectGroup(it->second, objectGroup); + it->second.releaseWrapperObjectGroup(objectGroup); } } @@ -204,13 +205,6 @@ InspectorFrontend* InjectedScriptHost::inspectorFrontend() return m_inspectorController->m_frontend.get(); } -void InjectedScriptHost::releaseWrapperObjectGroup(const ScriptObject& injectedScript, const String& objectGroup) -{ - ScriptFunctionCall releaseFunction(injectedScript.scriptState(), injectedScript, "releaseWrapperObjectGroup"); - releaseFunction.appendArgument(objectGroup); - releaseFunction.call(); -} - } // namespace WebCore #endif // ENABLE(INSPECTOR) |