Title: [107251] trunk/Source/WebCore
- Revision
- 107251
- Author
- [email protected]
- Date
- 2012-02-09 08:53:55 -0800 (Thu, 09 Feb 2012)
Log 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):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (107250 => 107251)
--- trunk/Source/WebCore/ChangeLog 2012-02-09 16:51:04 UTC (rev 107250)
+++ trunk/Source/WebCore/ChangeLog 2012-02-09 16:53:55 UTC (rev 107251)
@@ -1,3 +1,16 @@
+2012-02-09 Andrey Kosyakov <[email protected]>
+
+ 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):
+
2012-02-08 Dan Vrátil <[email protected]>, Milan Crha <[email protected]>
[GTK] Embedded GtkWidgets are not drawn
Modified: trunk/Source/WebCore/inspector/front-end/TimelinePanel.js (107250 => 107251)
--- trunk/Source/WebCore/inspector/front-end/TimelinePanel.js 2012-02-09 16:51:04 UTC (rev 107250)
+++ trunk/Source/WebCore/inspector/front-end/TimelinePanel.js 2012-02-09 16:53:55 UTC (rev 107251)
@@ -95,7 +95,6 @@
this._registeredAnimationCallbackRecords = {};
this._calculator = new WebInspector.TimelineCalculator();
- this._calculator._showShortEvents = false;
var shortRecordThresholdTitle = Number.secondsToString(WebInspector.TimelinePanel.shortRecordThreshold);
this._showShortRecordsTitleText = WebInspector.UIString("Show the records that are shorter than %s", shortRecordThresholdTitle);
this._hideShortRecordsTitleText = WebInspector.UIString("Hide the records that are shorter than %s", shortRecordThresholdTitle);
@@ -110,7 +109,7 @@
// Disable short events filter by default.
this.toggleFilterButton.toggled = true;
- this._calculator._showShortEvents = this.toggleFilterButton.toggled;
+ this._showShortEvents = this.toggleFilterButton.toggled;
this._timeStampRecords = [];
this._expandOffset = 15;
@@ -435,8 +434,8 @@
_toggleFilterButtonClicked: function()
{
this.toggleFilterButton.toggled = !this.toggleFilterButton.toggled;
- this._calculator._showShortEvents = this.toggleFilterButton.toggled;
- this.toggleFilterButton.element.title = this._calculator._showShortEvents ? this._hideShortRecordsTitleText : this._showShortRecordsTitleText;
+ this._showShortEvents = this.toggleFilterButton.toggled;
+ this.toggleFilterButton.element.title = this._showShortEvents ? this._hideShortRecordsTitleText : this._showShortRecordsTitleText;
this._scheduleRefresh(true);
},
@@ -672,7 +671,7 @@
delete this._refreshTimeout;
}
- this._overviewPane.update(this._rootRecord.children, this._calculator._showShortEvents);
+ this._overviewPane.update(this._rootRecord.children, this._showShortEvents);
this._refreshRecords(!this._boundariesAreValid);
this._updateRecordsCounter();
@@ -700,7 +699,7 @@
*/
_addToRecordsWindow: function(record, recordsWindow, parentIsCollapsed)
{
- if (!this._calculator._showShortEvents && !record.isLong())
+ if (!this._showShortEvents && !record.isLong())
return;
var percentages = this._calculator.computeBarGraphPercentages(record);
if (percentages.start < 100 && percentages.endWithChildren >= 0 && !record.category.hidden) {
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes