Unreviewed, rolling out r103405.
[WebKit-https.git] / Source / WebCore / inspector / InspectorDebuggerAgent.cpp
index 135e9a815caddfd0e1db27dc05b0000839bd427a..1b04aa58ba9de1deabec7389e12e22eb71d03c65 100644 (file)
@@ -35,7 +35,6 @@
 #include "InjectedScript.h"
 #include "InjectedScriptManager.h"
 #include "InspectorFrontend.h"
-#include "InspectorPageAgent.h"
 #include "InspectorState.h"
 #include "InspectorValues.h"
 #include "InstrumentingAgents.h"
@@ -474,28 +473,12 @@ PassRefPtr<InspectorArray> InspectorDebuggerAgent::currentCallFrames()
     return injectedScript.wrapCallFrames(m_currentCallStack);
 }
 
-String InspectorDebuggerAgent::sourceMapURLForScript(const Script& script)
-{
-    DEFINE_STATIC_LOCAL(String, sourceMapHttpHeader, ("X-SourceMap"));
-
-    if (script.url.isEmpty())
-        return String();
-
-    InspectorPageAgent* pageAgent = m_instrumentingAgents->inspectorPageAgent();
-    CachedResource* resource = pageAgent->cachedResource(pageAgent->mainFrame(), KURL(ParsedURLString, script.url));
-    if (resource)
-        return resource->response().httpHeaderField(sourceMapHttpHeader);
-    return String();
-}
-
 // JavaScriptDebugListener functions
 
 void InspectorDebuggerAgent::didParseSource(const String& scriptId, const Script& script)
 {
     // Don't send script content to the front end until it's really needed.
-    const bool* isContentScript = script.isContentScript ? &script.isContentScript : 0;
-    String sourceMapURL = sourceMapURLForScript(script);
-    m_frontend->scriptParsed(scriptId, script.url, script.startLine, script.startColumn, script.endLine, script.endColumn, isContentScript, sourceMapURL);
+    m_frontend->scriptParsed(scriptId, script.url, script.startLine, script.startColumn, script.endLine, script.endColumn, script.isContentScript ? &script.isContentScript : 0);
 
     m_scripts.set(scriptId, script);