Changeset 107251 in webkit
- Timestamp:
- Feb 9, 2012 8:53:55 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r107249 r107251 1 2012-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 1 14 2012-02-08 Dan Vrátil <dvratil@redhat.com>, Milan Crha <mcrha@redhat.com> 2 15 -
trunk/Source/WebCore/inspector/front-end/TimelinePanel.js
r106230 r107251 96 96 97 97 this._calculator = new WebInspector.TimelineCalculator(); 98 this._calculator._showShortEvents = false;99 98 var shortRecordThresholdTitle = Number.secondsToString(WebInspector.TimelinePanel.shortRecordThreshold); 100 99 this._showShortRecordsTitleText = WebInspector.UIString("Show the records that are shorter than %s", shortRecordThresholdTitle); … … 111 110 // Disable short events filter by default. 112 111 this.toggleFilterButton.toggled = true; 113 this._ calculator._showShortEvents = this.toggleFilterButton.toggled;112 this._showShortEvents = this.toggleFilterButton.toggled; 114 113 this._timeStampRecords = []; 115 114 this._expandOffset = 15; … … 436 435 { 437 436 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; 440 439 this._scheduleRefresh(true); 441 440 }, … … 673 672 } 674 673 675 this._overviewPane.update(this._rootRecord.children, this._ calculator._showShortEvents);674 this._overviewPane.update(this._rootRecord.children, this._showShortEvents); 676 675 677 676 this._refreshRecords(!this._boundariesAreValid); … … 701 700 _addToRecordsWindow: function(record, recordsWindow, parentIsCollapsed) 702 701 { 703 if (!this._ calculator._showShortEvents && !record.isLong())702 if (!this._showShortEvents && !record.isLong()) 704 703 return; 705 704 var percentages = this._calculator.computeBarGraphPercentages(record);
Note: See TracChangeset
for help on using the changeset viewer.