Changeset 58419 in webkit


Ignore:
Timestamp:
Apr 28, 2010 12:15:03 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-04-28 Ilya Tikhonovsky <loislo@chromium.org>

Reviewed by Yury Semikhatsky.

WebInspector: Timeline: We can have precise urls in the EvaluateScript records.
https://bugs.webkit.org/show_bug.cgi?id=38264

  • inspector/front-end/TimelinePanel.js: (WebInspector.TimelinePanel.FormattedRecord.prototype._generatePopupContent): (WebInspector.TimelinePanel.FormattedRecord.prototype._getRecordDetails):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r58412 r58419  
     12010-04-28  Ilya Tikhonovsky  <loislo@chromium.org>
     2
     3        Reviewed by Yury Semikhatsky.
     4
     5        WebInspector: Timeline: We can have precise urls in the EvaluateScript records.
     6        https://bugs.webkit.org/show_bug.cgi?id=38264
     7
     8        * inspector/front-end/TimelinePanel.js:
     9        (WebInspector.TimelinePanel.FormattedRecord.prototype._generatePopupContent):
     10        (WebInspector.TimelinePanel.FormattedRecord.prototype._getRecordDetails):
     11
    1122010-04-28  Pavel Feldman  <pfeldman@chromium.org>
    213
  • trunk/WebCore/inspector/front-end/TimelinePanel.js

    r58242 r58419  
    952952                    recordContentTable.appendChild(this._createRow(WebInspector.UIString("Expected Content Length"), this.data.expectedContentLength));
    953953            } else if (this.type === recordTypes.EvaluateScript) {
    954                 var link = WebInspector.linkifyResourceAsNode(this.data.url, "scripts", null, "timeline-details");
     954                var link = WebInspector.linkifyResourceAsNode(this.data.url, "scripts", this.data.lineNumber, "timeline-details");
    955955                recordContentTable.appendChild(this._createLinkRow(WebInspector.UIString("Script"), link));
    956956            } else if (this.type === recordTypes.Paint) {
     
    986986            case WebInspector.TimelineAgent.RecordType.TimerFire:
    987987                return record.data.timerId;
     988            case WebInspector.TimelineAgent.RecordType.EvaluateScript:
     989                return record.data.url ? WebInspector.displayNameForURL(record.data.url) + ":" + record.data.lineNumber : "";
    988990            case WebInspector.TimelineAgent.RecordType.XHRReadyStateChange:
    989991            case WebInspector.TimelineAgent.RecordType.XHRLoad:
    990             case WebInspector.TimelineAgent.RecordType.EvaluateScript:
    991992            case WebInspector.TimelineAgent.RecordType.ResourceSendRequest:
    992993            case WebInspector.TimelineAgent.RecordType.ResourceReceiveData:
Note: See TracChangeset for help on using the changeset viewer.