Chromium Code Reviews| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 74 WebInspector.CompilerScriptMapping.uiSourceCodeOrigin = function(uiSourceCode) | 74 WebInspector.CompilerScriptMapping.uiSourceCodeOrigin = function(uiSourceCode) |
| 75 { | 75 { |
| 76 return uiSourceCode[WebInspector.CompilerScriptMapping._originSymbol] || nul l; | 76 return uiSourceCode[WebInspector.CompilerScriptMapping._originSymbol] || nul l; |
| 77 } | 77 } |
| 78 | 78 |
| 79 WebInspector.CompilerScriptMapping.prototype = { | 79 WebInspector.CompilerScriptMapping.prototype = { |
| 80 /** | 80 /** |
| 81 * @param {!WebInspector.DebuggerModel.Location} rawLocation | 81 * @param {!WebInspector.DebuggerModel.Location} rawLocation |
| 82 * @return {boolean} | 82 * @return {boolean} |
| 83 */ | 83 */ |
| 84 mapsToSourceCode: function (rawLocation) { | 84 mapsToSourceCode: function(rawLocation) { |
|
pfeldman
2016/04/22 14:22:07
Can we enforce this guy to be on the next line?
paulirish
2016/04/22 18:28:50
ack
| |
| 85 var sourceMap = this._sourceMapForScriptId.get(rawLocation.scriptId); | 85 var sourceMap = this._sourceMapForScriptId.get(rawLocation.scriptId); |
| 86 if (!sourceMap) { | 86 if (!sourceMap) { |
| 87 return true; | 87 return true; |
| 88 } | 88 } |
| 89 return !!sourceMap.findEntry(rawLocation.lineNumber, rawLocation.columnN umber); | 89 return !!sourceMap.findEntry(rawLocation.lineNumber, rawLocation.columnN umber); |
| 90 }, | 90 }, |
| 91 | 91 |
| 92 /** | 92 /** |
| 93 * @override | 93 * @override |
| 94 * @param {!WebInspector.DebuggerModel.Location} rawLocation | 94 * @param {!WebInspector.DebuggerModel.Location} rawLocation |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 382 this._sourceMapForScriptId.clear() | 382 this._sourceMapForScriptId.clear() |
| 383 this._scriptForSourceMap.clear(); | 383 this._scriptForSourceMap.clear(); |
| 384 this._sourceMapForURL.clear(); | 384 this._sourceMapForURL.clear(); |
| 385 }, | 385 }, |
| 386 | 386 |
| 387 dispose: function() | 387 dispose: function() |
| 388 { | 388 { |
| 389 this._workspace.removeEventListener(WebInspector.Workspace.Events.UISour ceCodeAdded, this._uiSourceCodeAddedToWorkspace, this); | 389 this._workspace.removeEventListener(WebInspector.Workspace.Events.UISour ceCodeAdded, this._uiSourceCodeAddedToWorkspace, this); |
| 390 } | 390 } |
| 391 } | 391 } |
| OLD | NEW |