Changeset 56789 in webkit
- Timestamp:
- Mar 30, 2010 7:50:29 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r56785 r56789 1 2010-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 1 14 2010-03-30 Adam Roben <aroben@apple.com> 2 15 -
trunk/WebCore/inspector/front-end/TimelinePanel.js
r56772 r56789 160 160 this.clearButton.addEventListener("click", this._clearPanel.bind(this), false); 161 161 162 this.toggleFilterButton = new WebInspector.StatusBarButton(WebInspector.UIString(" Showshort records"), "timeline-filter-status-bar-item");162 this.toggleFilterButton = new WebInspector.StatusBarButton(WebInspector.UIString("Hide short records"), "timeline-filter-status-bar-item"); 163 163 this.toggleFilterButton.addEventListener("click", this._toggleFilterButtonClicked.bind(this), false); 164 164 … … 186 186 this.toggleFilterButton.toggled = !this.toggleFilterButton.toggled; 187 187 this._calculator._showShortEvents = this.toggleFilterButton.toggled; 188 this.toggleFilterButton.element.title = this._calculator._showShortEvents ? WebInspector.UIString("Hide short records") : WebInspector.UIString("Show short records"); 188 189 this._scheduleRefresh(true); 189 190 }, … … 244 245 formattedRecord.collapsed = true; 245 246 246 var hasLongChildrenEvents = false;247 247 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); 250 249 251 250 if (connectedToOldRecord) { … … 253 252 while (record.parent && record.parent._lastChildEndTime < record._lastChildEndTime) { 254 253 record.parent._lastChildEndTime = record._lastChildEndTime; 255 if (!record.parent._hasLongChildrenEvents)256 record.parent._hasLongChildrenEvents = record._isLongEvent();257 254 record = record.parent; 258 255 } 259 256 } 260 return hasLongChildrenEvents || formattedRecord._isLongEvent();261 257 }, 262 258
Note: See TracChangeset
for help on using the changeset viewer.