Changeset 107251 in webkit


Ignore:
Timestamp:
Feb 9, 2012 8:53:55 AM (12 years ago)
Author:
caseq@chromium.org
Message:

Web Inspector: [refactoring] take _showShortEvents out of timeline calculator
https://bugs.webkit.org/show_bug.cgi?id=78230

Reviewed by Pavel Feldman.

  • inspector/front-end/TimelinePanel.js:

(WebInspector.TimelinePanel):
(WebInspector.TimelinePanel.prototype._toggleFilterButtonClicked):
(WebInspector.TimelinePanel.prototype._refresh):
(WebInspector.TimelinePanel.prototype._addToRecordsWindow):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r107249 r107251  
     12012-02-09  Andrey Kosyakov  <caseq@chromium.org>
     2
     3        Web Inspector: [refactoring] take _showShortEvents out of timeline calculator
     4        https://bugs.webkit.org/show_bug.cgi?id=78230
     5
     6        Reviewed by Pavel Feldman.
     7
     8        * inspector/front-end/TimelinePanel.js:
     9        (WebInspector.TimelinePanel):
     10        (WebInspector.TimelinePanel.prototype._toggleFilterButtonClicked):
     11        (WebInspector.TimelinePanel.prototype._refresh):
     12        (WebInspector.TimelinePanel.prototype._addToRecordsWindow):
     13
    1142012-02-08  Dan Vrátil  <dvratil@redhat.com>, Milan Crha <mcrha@redhat.com>
    215
  • trunk/Source/WebCore/inspector/front-end/TimelinePanel.js

    r106230 r107251  
    9696
    9797    this._calculator = new WebInspector.TimelineCalculator();
    98     this._calculator._showShortEvents = false;
    9998    var shortRecordThresholdTitle = Number.secondsToString(WebInspector.TimelinePanel.shortRecordThreshold);
    10099    this._showShortRecordsTitleText = WebInspector.UIString("Show the records that are shorter than %s", shortRecordThresholdTitle);
     
    111110    // Disable short events filter by default.
    112111    this.toggleFilterButton.toggled = true;
    113     this._calculator._showShortEvents = this.toggleFilterButton.toggled;
     112    this._showShortEvents = this.toggleFilterButton.toggled;
    114113    this._timeStampRecords = [];
    115114    this._expandOffset = 15;
     
    436435    {
    437436        this.toggleFilterButton.toggled = !this.toggleFilterButton.toggled;
    438         this._calculator._showShortEvents = this.toggleFilterButton.toggled;
    439         this.toggleFilterButton.element.title = this._calculator._showShortEvents ? this._hideShortRecordsTitleText : this._showShortRecordsTitleText;
     437        this._showShortEvents = this.toggleFilterButton.toggled;
     438        this.toggleFilterButton.element.title = this._showShortEvents ? this._hideShortRecordsTitleText : this._showShortRecordsTitleText;
    440439        this._scheduleRefresh(true);
    441440    },
     
    673672        }
    674673
    675         this._overviewPane.update(this._rootRecord.children, this._calculator._showShortEvents);
     674        this._overviewPane.update(this._rootRecord.children, this._showShortEvents);
    676675
    677676        this._refreshRecords(!this._boundariesAreValid);
     
    701700    _addToRecordsWindow: function(record, recordsWindow, parentIsCollapsed)
    702701    {
    703         if (!this._calculator._showShortEvents && !record.isLong())
     702        if (!this._showShortEvents && !record.isLong())
    704703            return;
    705704        var percentages = this._calculator.computeBarGraphPercentages(record);
Note: See TracChangeset for help on using the changeset viewer.