 Chromium Code Reviews
 Chromium Code Reviews Issue 1699183003:
  [DevTools] Don't load sourcemap for blackboxed scripts  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@add-source-map-support-v3
    
  
    Issue 1699183003:
  [DevTools] Don't load sourcemap for blackboxed scripts  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@add-source-map-support-v3| OLD | NEW | 
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 /** | 5 /** | 
| 6 * @constructor | 6 * @constructor | 
| 7 * @implements {WebInspector.TargetManager.Observer} | 7 * @implements {WebInspector.TargetManager.Observer} | 
| 8 * @param {!WebInspector.TargetManager} targetManager | 8 * @param {!WebInspector.TargetManager} targetManager | 
| 9 * @param {!WebInspector.Workspace} workspace | 9 * @param {!WebInspector.Workspace} workspace | 
| 10 * @param {!WebInspector.NetworkMapping} networkMapping | 10 * @param {!WebInspector.NetworkMapping} networkMapping | 
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 236 */ | 236 */ | 
| 237 sourceMapForScript: function(script) | 237 sourceMapForScript: function(script) | 
| 238 { | 238 { | 
| 239 var targetData = this._targetToData.get(script.target()); | 239 var targetData = this._targetToData.get(script.target()); | 
| 240 if (!targetData) | 240 if (!targetData) | 
| 241 return null; | 241 return null; | 
| 242 return targetData._compilerMapping.sourceMapForScript(script); | 242 return targetData._compilerMapping.sourceMapForScript(script); | 
| 243 }, | 243 }, | 
| 244 | 244 | 
| 245 /** | 245 /** | 
| 246 * @param {!WebInspector.Script} script | |
| 247 */ | |
| 248 loadSourceMap: function(script) | |
| 
dgozman
2016/02/18 02:37:41
maybeLoadSourceMap
 
kozy
2016/02/19 02:24:50
Done.
 | |
| 249 { | |
| 250 var targetData = this._targetToData.get(script.target()); | |
| 251 if (!targetData) | |
| 252 return; | |
| 253 targetData._compilerMapping.loadSourceMap(script); | |
| 254 }, | |
| 255 | |
| 256 /** | |
| 246 * @param {!WebInspector.Event} event | 257 * @param {!WebInspector.Event} event | 
| 247 */ | 258 */ | 
| 248 _globalObjectCleared: function(event) | 259 _globalObjectCleared: function(event) | 
| 249 { | 260 { | 
| 250 var debuggerModel = /** @type {!WebInspector.DebuggerModel} */ (event.ta rget); | 261 var debuggerModel = /** @type {!WebInspector.DebuggerModel} */ (event.ta rget); | 
| 251 this._reset(debuggerModel.target()); | 262 this._reset(debuggerModel.target()); | 
| 252 }, | 263 }, | 
| 253 | 264 | 
| 254 /** | 265 /** | 
| 255 * @param {!WebInspector.Target} target | 266 * @param {!WebInspector.Target} target | 
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 577 * @param {number} lineNumber | 588 * @param {number} lineNumber | 
| 578 * @return {boolean} | 589 * @return {boolean} | 
| 579 */ | 590 */ | 
| 580 uiLineHasMapping: function(uiSourceCode, lineNumber) { } | 591 uiLineHasMapping: function(uiSourceCode, lineNumber) { } | 
| 581 } | 592 } | 
| 582 | 593 | 
| 583 /** | 594 /** | 
| 584 * @type {!WebInspector.DebuggerWorkspaceBinding} | 595 * @type {!WebInspector.DebuggerWorkspaceBinding} | 
| 585 */ | 596 */ | 
| 586 WebInspector.debuggerWorkspaceBinding; | 597 WebInspector.debuggerWorkspaceBinding; | 
| OLD | NEW |