Changeset 56789 in webkit


Ignore:
Timestamp:
Mar 30, 2010 7:50:29 AM (14 years ago)
Author:
pfeldman@chromium.org
Message:

2010-03-30 Ilya Tikhonovsky <loislo@chromium.org>

Reviewed by Pavel Feldman.

Web Inspector: Title for show/hide short records button was adjusted.
Some unused code was removed.
https://bugs.webkit.org/show_bug.cgi?id=36823

  • inspector/front-end/TimelinePanel.js: (WebInspector.TimelinePanel.prototype._createStatusbarButtons): (WebInspector.TimelinePanel.prototype._toggleFilterButtonClicked): (WebInspector.TimelinePanel.prototype._innerAddRecordToTimeline):
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r56785 r56789  
     12010-03-30  Ilya Tikhonovsky  <loislo@chromium.org>
     2
     3        Reviewed by Pavel Feldman.
     4
     5        Web Inspector: Title for show/hide short records button was adjusted.
     6        Some unused code was removed.
     7        https://bugs.webkit.org/show_bug.cgi?id=36823
     8
     9        * inspector/front-end/TimelinePanel.js:
     10        (WebInspector.TimelinePanel.prototype._createStatusbarButtons):
     11        (WebInspector.TimelinePanel.prototype._toggleFilterButtonClicked):
     12        (WebInspector.TimelinePanel.prototype._innerAddRecordToTimeline):
     13
    1142010-03-30  Adam Roben  <aroben@apple.com>
    215
  • trunk/WebCore/inspector/front-end/TimelinePanel.js

    r56772 r56789  
    160160        this.clearButton.addEventListener("click", this._clearPanel.bind(this), false);
    161161
    162         this.toggleFilterButton = new WebInspector.StatusBarButton(WebInspector.UIString("Show short records"), "timeline-filter-status-bar-item");
     162        this.toggleFilterButton = new WebInspector.StatusBarButton(WebInspector.UIString("Hide short records"), "timeline-filter-status-bar-item");
    163163        this.toggleFilterButton.addEventListener("click", this._toggleFilterButtonClicked.bind(this), false);
    164164
     
    186186        this.toggleFilterButton.toggled = !this.toggleFilterButton.toggled;
    187187        this._calculator._showShortEvents = this.toggleFilterButton.toggled;
     188        this.toggleFilterButton.element.title = this._calculator._showShortEvents ? WebInspector.UIString("Hide short records") : WebInspector.UIString("Show short records");
    188189        this._scheduleRefresh(true);
    189190    },
     
    244245            formattedRecord.collapsed = true;
    245246
    246         var hasLongChildrenEvents = false;
    247247        for (var i = 0; record.children && i < record.children.length; ++i)
    248             hasLongChildrenEvents |= this._innerAddRecordToTimeline(record.children[i], formattedRecord);
    249         formattedRecord._hasLongChildrenEvents = hasLongChildrenEvents;
     248            this._innerAddRecordToTimeline(record.children[i], formattedRecord);
    250249
    251250        if (connectedToOldRecord) {
     
    253252            while (record.parent && record.parent._lastChildEndTime < record._lastChildEndTime) {
    254253                record.parent._lastChildEndTime = record._lastChildEndTime;
    255                 if (!record.parent._hasLongChildrenEvents)
    256                     record.parent._hasLongChildrenEvents = record._isLongEvent();
    257254                record = record.parent;
    258255            }
    259256        }
    260         return hasLongChildrenEvents || formattedRecord._isLongEvent();
    261257    },
    262258
Note: See TracChangeset for help on using the changeset viewer.