Changeset 109577 in webkit


Ignore:
Timestamp:
Mar 2, 2012 8:21:24 AM (12 years ago)
Author:
podivilov@chromium.org
Message:

Web Inspector: fix fronted compilation.
https://bugs.webkit.org/show_bug.cgi?id=80154

Reviewed by Yury Semikhatsky.

  • inspector/front-end/DebuggerModel.js:

(WebInspector.DebuggerModel.prototype.scriptForSourceID):

  • inspector/front-end/DebuggerPresentationModel.js:

(WebInspector.DebuggerPresentationModel.Linkifier.prototype.linkifyLocation):

  • inspector/front-end/ScriptsSearchScope.js:

(WebInspector.ScriptsSearchResultsPane.prototype.createAnchor):

Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r109574 r109577  
     12012-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
    1152012-03-02  Kaustubh Atrawalkar  <kaustubh@motorola.com>
    216
  • trunk/Source/WebCore/inspector/front-end/DebuggerModel.js

    r103711 r109577  
    235235    /**
    236236     * @param {DebuggerAgent.ScriptId} scriptId
    237      * @return {WebInspector.Script|undefined}
     237     * @return {WebInspector.Script}
    238238     */
    239239    scriptForSourceID: function(scriptId)
    240240    {
    241         return this._scripts[scriptId];
     241        return this._scripts[scriptId] || null;
    242242    },
    243243
  • trunk/Source/WebCore/inspector/front-end/DebuggerPresentationModel.js

    r109561 r109577  
    678678     * @param {string} url
    679679     * @param {DebuggerAgent.Location} rawLocation
     680     * @return {WebInspector.Script}
    680681     */
    681682    _scriptForURLAndLocation: function(url, rawLocation)
     
    988989    linkifyLocation: function(sourceURL, lineNumber, columnNumber, classes)
    989990    {
    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);
    991993        if (!script)
    992994            return WebInspector.linkifyResourceAsNode(sourceURL, lineNumber, classes);
    993         var rawLocation = new WebInspector.DebuggerModel.Location(lineNumber, columnNumber);
    994995        rawLocation.scriptId = script.scriptId;
    995996        return this.linkifyRawLocation(rawLocation, classes);
  • trunk/Source/WebCore/inspector/front-end/ScriptsSearchScope.js

    r109561 r109577  
    145145    createAnchor: function(file, lineNumber, columnNumber)
    146146    {
    147         var uiSourceCode = file;
     147        var uiSourceCode = /** @type {WebInspector.UISourceCode} */ file;
    148148        var rawLocation = WebInspector.debuggerPresentationModel.uiLocationToRawLocation(uiSourceCode, lineNumber, columnNumber);
    149149        var anchor = this._linkifier.linkifyRawLocation(rawLocation);
Note: See TracChangeset for help on using the changeset viewer.