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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 return; | 176 return; |
177 if (this._sourceMapForScriptId.has(script.scriptId)) | 177 if (this._sourceMapForScriptId.has(script.scriptId)) |
178 return; | 178 return; |
179 this._processScript(script); | 179 this._processScript(script); |
180 } | 180 } |
181 | 181 |
182 /** | 182 /** |
183 * @param {!Common.Event} event | 183 * @param {!Common.Event} event |
184 */ | 184 */ |
185 _sourceMapURLAdded(event) { | 185 _sourceMapURLAdded(event) { |
186 var script = /** @type {!SDK.Script} */ (event.target); | 186 var script = /** @type {!SDK.Script} */ (event.data); |
187 if (!script.sourceMapURL) | 187 if (!script.sourceMapURL) |
188 return; | 188 return; |
189 this._processScript(script); | 189 this._processScript(script); |
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())) |
(...skipping 178 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 |