Changeset 50885 in webkit


Ignore:
Timestamp:
Nov 12, 2009 10:23:56 AM (14 years ago)
Author:
pfeldman@chromium.org
Message:

2009-11-12 Pavel Feldman <pfeldman@chromium.org>

Reviewed by Timothy Hatcher.

Web Inspector: Minor timeline fixes.

https://bugs.webkit.org/show_bug.cgi?id=31417

  • inspector/front-end/TimelinePanel.js: (WebInspector.TimelinePanel.prototype._getRecordDetails): (WebInspector.TimelineRecordTreeElement.prototype.onattach): (WebInspector.TimelineRecordTreeElement.prototype._updateDetails): (WebInspector.TimelineRecordTreeElement.prototype.refresh):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r50884 r50885  
     12009-11-12  Pavel Feldman  <pfeldman@chromium.org>
     2
     3        Reviewed by Timothy Hatcher.
     4
     5        Web Inspector: Minor timeline fixes.
     6
     7        https://bugs.webkit.org/show_bug.cgi?id=31417
     8
     9        * inspector/front-end/TimelinePanel.js:
     10        (WebInspector.TimelinePanel.prototype._getRecordDetails):
     11        (WebInspector.TimelineRecordTreeElement.prototype.onattach):
     12        (WebInspector.TimelineRecordTreeElement.prototype._updateDetails):
     13        (WebInspector.TimelineRecordTreeElement.prototype.refresh):
     14
    1152009-11-12  Alexey Proskuryakov  <ap@apple.com>
    216
  • trunk/WebCore/inspector/front-end/TimelinePanel.js

    r50597 r50885  
    211211        case WebInspector.TimelineAgent.RecordType.ResourceReceiveResponse:
    212212        case WebInspector.TimelineAgent.RecordType.ResourceFinish:
    213             return WebInspector.displayNameForURL(this._sendRequestRecords[record.data.identifier].data.url);
     213            var sendRequestRecord = this._sendRequestRecords[record.data.identifier];
     214            return sendRequestRecord ? WebInspector.displayNameForURL(sendRequestRecord.data.url) : "";
    214215        case WebInspector.TimelineAgent.RecordType.MarkTimeline:
    215216            return record.data.message;
     
    533534            this.dataElement = document.createElement("span");
    534535            this.dataElement.className = "data dimmed";
    535             this.dataElement.textContent = "(" + this._record.details + ")";
    536             this.dataElement.title = this._record.details;
     536            this._updateDetails();
    537537
    538538            this.listItemElement.appendChild(separatorElement);
     
    541541    },
    542542
     543    _updateDetails: function() {
     544        if (this.dataElement && this._record.details !== this._details) {
     545            this._details = this._record.details;
     546            this.dataElement.textContent = "(" + this._details + ")";
     547            this.dataElement.title = this._details;
     548        }
     549    },
     550
    543551    refresh: function()
    544552    {
    545         if (this._record.details) {
    546             this.dataElement.textContent = "(" + this._record.details + ")";
    547             this.dataElement.title = this._record.details;
    548         }
     553        this._updateDetails();
    549554
    550555        if (this._record.count <= 1)
Note: See TracChangeset for help on using the changeset viewer.