Changeset 126851 in webkit
- Timestamp:
- Aug 28, 2012, 12:01:03 AM (14 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
inspector/front-end/TimelinePanel.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r126847 r126851 1 2012-08-27 Andrey Kosyakov <caseq@chromium.org> 2 3 Web Inspector: persist the state of glue records to parents button of Timeline panel 4 https://bugs.webkit.org/show_bug.cgi?id=95091 5 6 Reviewed by Vsevolod Vlasov. 7 8 Add a setting for "Glue records" button on the timeline, use it to persist the state of the button. 9 10 * inspector/front-end/TimelinePanel.js: 11 (WebInspector.TimelinePanel): 12 (WebInspector.TimelinePanel.prototype._createStatusBarItems.get this): 13 (WebInspector.TimelinePanel.prototype._createStatusBarItems): 14 1 15 2012-08-27 Taiju Tsuiki <tzik@chromium.org> 2 16 -
trunk/Source/WebCore/inspector/front-end/TimelinePanel.js
r126765 r126851 47 47 this._presentationModel = new WebInspector.TimelinePresentationModel(); 48 48 49 this._overviewModeSetting = WebInspector.settings.createSetting("timelineOverviewMode", WebInspector.TimelineOverviewPane.Mode.Events); 50 this._glueRecordsSetting = WebInspector.settings.createSetting("timelineGlueRecords", true); 51 49 52 this._overviewPane = new WebInspector.TimelineOverviewPane(this._model); 50 53 this._overviewPane.addEventListener(WebInspector.TimelineOverviewPane.Events.WindowChanged, this._scheduleRefresh.bind(this, false)); … … 146 149 this._presentationModel.addFilter(new WebInspector.TimelineCategoryFilter()); 147 150 this._presentationModel.addFilter(new WebInspector.TimelineIsLongFilter(this)); 148 149 this._overviewModeSetting = WebInspector.settings.createSetting("timelineOverviewMode", WebInspector.TimelineOverviewPane.Mode.Events);150 151 } 151 152 … … 236 237 237 238 this._glueParentButton = new WebInspector.StatusBarButton(WebInspector.UIString("Glue asynchronous events to causes"), "glue-async-status-bar-item"); 238 this._glueParentButton.toggled = t rue;239 this._presentationModel.setGlueRecords(t rue);239 this._glueParentButton.toggled = this._glueRecordsSetting.get(); 240 this._presentationModel.setGlueRecords(this._glueParentButton.toggled); 240 241 this._glueParentButton.addEventListener("click", this._glueParentButtonClicked, this); 241 242 this._statusBarButtons.push(this._glueParentButton); … … 540 541 _glueParentButtonClicked: function() 541 542 { 542 this._glueParentButton.toggled = !this._glueParentButton.toggled; 543 this._presentationModel.setGlueRecords(this._glueParentButton.toggled); 543 var newValue = !this._glueParentButton.toggled; 544 this._glueParentButton.toggled = newValue; 545 this._presentationModel.setGlueRecords(newValue); 546 this._glueRecordsSetting.set(newValue); 544 547 this._repopulateRecords(); 545 548 },
Note:
See TracChangeset
for help on using the changeset viewer.