| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 } | 190 } |
| 191 | 191 |
| 192 /** | 192 /** |
| 193 * @param {!SDK.Script} script | 193 * @param {!SDK.Script} script |
| 194 */ | 194 */ |
| 195 _processScript(script) { | 195 _processScript(script) { |
| 196 if (Bindings.blackboxManager.isBlackboxedURL(script.sourceURL, script.isCont
entScript())) | 196 if (Bindings.blackboxManager.isBlackboxedURL(script.sourceURL, script.isCont
entScript())) |
| 197 return; | 197 return; |
| 198 // Create stub UISourceCode for the time source mapping is being loaded. | 198 // Create stub UISourceCode for the time source mapping is being loaded. |
| 199 var stubUISourceCode = this._stubProject.addContentProvider( | 199 var stubUISourceCode = this._stubProject.addContentProvider( |
| 200 script.sourceURL, | 200 script.sourceURL + ':sourcemap', |
| 201 Common.StaticContentProvider.fromString( | 201 Common.StaticContentProvider.fromString( |
| 202 script.sourceURL, Common.resourceTypes.Script, | 202 script.sourceURL, Common.resourceTypes.Script, |
| 203 '\n\n\n\n\n// Please wait a bit.\n// Compiled script is not shown wh
ile source map is being loaded!')); | 203 '\n\n\n\n\n// Please wait a bit.\n// Compiled script is not shown wh
ile source map is being loaded!')); |
| 204 this._stubUISourceCodes.set(script.scriptId, stubUISourceCode); | 204 this._stubUISourceCodes.set(script.scriptId, stubUISourceCode); |
| 205 | 205 |
| 206 this._debuggerWorkspaceBinding.pushSourceMapping(script, this); | 206 this._debuggerWorkspaceBinding.pushSourceMapping(script, this); |
| 207 this._loadSourceMapForScript(script).then(this._sourceMapLoaded.bind(this, s
cript, stubUISourceCode.url())); | 207 this._loadSourceMapForScript(script).then(this._sourceMapLoaded.bind(this, s
cript, stubUISourceCode.url())); |
| 208 } | 208 } |
| 209 | 209 |
| 210 /** | 210 /** |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 } | 375 } |
| 376 | 376 |
| 377 dispose() { | 377 dispose() { |
| 378 Common.EventTarget.removeEventListeners(this._eventListeners); | 378 Common.EventTarget.removeEventListeners(this._eventListeners); |
| 379 this._debuggerReset(); | 379 this._debuggerReset(); |
| 380 this._stubProject.dispose(); | 380 this._stubProject.dispose(); |
| 381 } | 381 } |
| 382 }; | 382 }; |
| 383 | 383 |
| 384 Bindings.CompilerScriptMapping._originSymbol = Symbol('origin'); | 384 Bindings.CompilerScriptMapping._originSymbol = Symbol('origin'); |
| OLD | NEW |