| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 this._isContentScript = isContentScript; | 55 this._isContentScript = isContentScript; |
| 56 this._isInternalScript = isInternalScript; | 56 this._isInternalScript = isInternalScript; |
| 57 this._isLiveEdit = isLiveEdit; | 57 this._isLiveEdit = isLiveEdit; |
| 58 this.sourceMapURL = sourceMapURL; | 58 this.sourceMapURL = sourceMapURL; |
| 59 this.hasSourceURL = hasSourceURL; | 59 this.hasSourceURL = hasSourceURL; |
| 60 } | 60 } |
| 61 | 61 |
| 62 WebInspector.Script.Events = { | 62 WebInspector.Script.Events = { |
| 63 ScriptEdited: "ScriptEdited", | 63 ScriptEdited: "ScriptEdited", |
| 64 SourceMapURLAdded: "SourceMapURLAdded", | 64 SourceMapURLAdded: "SourceMapURLAdded", |
| 65 SourceMapLoaded: "SourceMapLoaded" |
| 65 } | 66 } |
| 66 | 67 |
| 67 WebInspector.Script.sourceURLRegex = /^[\040\t]*\/\/# sourceURL=\s*(\S*?)\s*$/m; | 68 WebInspector.Script.sourceURLRegex = /^[\040\t]*\/\/# sourceURL=\s*(\S*?)\s*$/m; |
| 68 | 69 |
| 69 /** | 70 /** |
| 70 * @param {string} source | 71 * @param {string} source |
| 71 * @return {string} | 72 * @return {string} |
| 72 */ | 73 */ |
| 73 WebInspector.Script._trimSourceURLComment = function(source) | 74 WebInspector.Script._trimSourceURLComment = function(source) |
| 74 { | 75 { |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 /** | 293 /** |
| 293 * @param {!Array<!DebuggerAgent.ScriptPosition>} positions | 294 * @param {!Array<!DebuggerAgent.ScriptPosition>} positions |
| 294 */ | 295 */ |
| 295 setBlackboxedRanges: function(positions) | 296 setBlackboxedRanges: function(positions) |
| 296 { | 297 { |
| 297 this.target().debuggerAgent().setBlackboxedRanges(this.scriptId, positio
ns); | 298 this.target().debuggerAgent().setBlackboxedRanges(this.scriptId, positio
ns); |
| 298 }, | 299 }, |
| 299 | 300 |
| 300 __proto__: WebInspector.SDKObject.prototype | 301 __proto__: WebInspector.SDKObject.prototype |
| 301 } | 302 } |
| OLD | NEW |