Changeset 109577 in webkit
- Timestamp:
- Mar 2, 2012 8:21:24 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r109574 r109577 1 2012-03-02 Pavel Podivilov <podivilov@chromium.org> 2 3 Web Inspector: fix fronted compilation. 4 https://bugs.webkit.org/show_bug.cgi?id=80154 5 6 Reviewed by Yury Semikhatsky. 7 8 * inspector/front-end/DebuggerModel.js: 9 (WebInspector.DebuggerModel.prototype.scriptForSourceID): 10 * inspector/front-end/DebuggerPresentationModel.js: 11 (WebInspector.DebuggerPresentationModel.Linkifier.prototype.linkifyLocation): 12 * inspector/front-end/ScriptsSearchScope.js: 13 (WebInspector.ScriptsSearchResultsPane.prototype.createAnchor): 14 1 15 2012-03-02 Kaustubh Atrawalkar <kaustubh@motorola.com> 2 16 -
trunk/Source/WebCore/inspector/front-end/DebuggerModel.js
r103711 r109577 235 235 /** 236 236 * @param {DebuggerAgent.ScriptId} scriptId 237 * @return {WebInspector.Script |undefined}237 * @return {WebInspector.Script} 238 238 */ 239 239 scriptForSourceID: function(scriptId) 240 240 { 241 return this._scripts[scriptId] ;241 return this._scripts[scriptId] || null; 242 242 }, 243 243 -
trunk/Source/WebCore/inspector/front-end/DebuggerPresentationModel.js
r109561 r109577 678 678 * @param {string} url 679 679 * @param {DebuggerAgent.Location} rawLocation 680 * @return {WebInspector.Script} 680 681 */ 681 682 _scriptForURLAndLocation: function(url, rawLocation) … … 988 989 linkifyLocation: function(sourceURL, lineNumber, columnNumber, classes) 989 990 { 990 var script = this._model._scriptForURLAndLocation(sourceURL, lineNumber, columnNumber); 991 var rawLocation = new WebInspector.DebuggerModel.Location(lineNumber, columnNumber || 0); 992 var script = this._model._scriptForURLAndLocation(sourceURL, rawLocation); 991 993 if (!script) 992 994 return WebInspector.linkifyResourceAsNode(sourceURL, lineNumber, classes); 993 var rawLocation = new WebInspector.DebuggerModel.Location(lineNumber, columnNumber);994 995 rawLocation.scriptId = script.scriptId; 995 996 return this.linkifyRawLocation(rawLocation, classes); -
trunk/Source/WebCore/inspector/front-end/ScriptsSearchScope.js
r109561 r109577 145 145 createAnchor: function(file, lineNumber, columnNumber) 146 146 { 147 var uiSourceCode = file;147 var uiSourceCode = /** @type {WebInspector.UISourceCode} */ file; 148 148 var rawLocation = WebInspector.debuggerPresentationModel.uiLocationToRawLocation(uiSourceCode, lineNumber, columnNumber); 149 149 var anchor = this._linkifier.linkifyRawLocation(rawLocation);
Note: See TracChangeset
for help on using the changeset viewer.