Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(343)

Unified Diff: Source/devtools/front_end/bindings/ResourceScriptMapping.js

Issue 1240373002: Revert of [DevTools] Remove edited scripts from debugger agent, move knowledge to frontend. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/bindings/ResourceScriptMapping.js
diff --git a/Source/devtools/front_end/bindings/ResourceScriptMapping.js b/Source/devtools/front_end/bindings/ResourceScriptMapping.js
index 5aab2798b7dab9aaa180b40eafcdc227fede71cc..88336246748f143c81202cc3158147d444897116 100644
--- a/Source/devtools/front_end/bindings/ResourceScriptMapping.js
+++ b/Source/devtools/front_end/bindings/ResourceScriptMapping.js
@@ -239,10 +239,6 @@
_bindUISourceCodeToScripts: function(uiSourceCode, scripts)
{
console.assert(scripts.length);
- var boundScriptFile = this.scriptFile(uiSourceCode);
- if (boundScriptFile && boundScriptFile.hasScripts(scripts))
- return;
-
var scriptFile = new WebInspector.ResourceScriptFile(this, uiSourceCode, scripts);
this._setScriptFile(uiSourceCode, scriptFile);
for (var i = 0; i < scripts.length; ++i)
@@ -313,18 +309,6 @@
}
WebInspector.ResourceScriptFile.prototype = {
- /**
- * @param {!Array.<!WebInspector.Script>} scripts
- * @return {boolean}
- */
- hasScripts: function(scripts)
- {
- var script;
- if (this._uiSourceCode.contentType() === WebInspector.resourceTypes.Script)
- script = scripts[0];
- return this._script === script;
- },
-
/**
* @param {function(?string,!DebuggerAgent.SetScriptSourceError=,!WebInspector.Script=)=} callback
*/
« no previous file with comments | « Source/devtools/front_end/bindings/NetworkProject.js ('k') | Source/devtools/front_end/sdk/DebuggerModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698