Changeset 109109 in webkit
- Timestamp:
- Feb 28, 2012 8:27:25 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r109107 r109109 1 2012-02-28 Yury Semikhatsky <yurys@chromium.org> 2 3 Web Inspector: preserve memory counters size after frontend reopening 4 https://bugs.webkit.org/show_bug.cgi?id=79792 5 6 Clear collected counter values when timeline panel is reset. Persist 7 timeline grid/counters splitter position to restore it when front-end 8 is opened next time. 9 10 Reviewed by Pavel Feldman. 11 12 * inspector/front-end/MemoryStatistics.js: 13 (WebInspector.MemoryStatistics.prototype.reset): 14 * inspector/front-end/TimelinePanel.js: 15 (WebInspector.TimelinePanel): 16 (WebInspector.TimelinePanel.prototype._setSplitterPosition): 17 (WebInspector.TimelinePanel.prototype._resetPanel): 18 * inspector/front-end/timelinePanel.css: 19 (#counter-values-bar): 20 1 21 2012-02-28 Pavel Feldman <pfeldman@google.com> 2 22 -
trunk/Source/WebCore/inspector/front-end/MemoryStatistics.js
r109102 r109109 208 208 209 209 WebInspector.MemoryStatistics.prototype = { 210 reset: function() 211 { 212 this._counters = []; 213 }, 214 210 215 setMainTimelineGrid: function(timelineGrid) 211 216 { -
trunk/Source/WebCore/inspector/front-end/TimelinePanel.js
r109107 r109109 64 64 this._memoryStatistics = new WebInspector.MemoryStatistics(this, this.splitView.preferredSidebarWidth()); 65 65 this._overviewPane.addEventListener(WebInspector.TimelineOverviewPane.Events.ModeChanged, this._timelinesOverviewModeChanged, this); 66 WebInspector.settings.memoryCounterGraphsHeight = WebInspector.settings.createSetting("memoryCounterGraphsHeight", 150); 66 67 } 67 68 … … 164 165 if (this._memoryStatistics) 165 166 this._memoryStatistics.show(); 167 WebInspector.settings.memoryCounterGraphsHeight.set(this.splitView.element.offsetHeight); 166 168 }, 167 169 … … 389 391 this._memoryStatistics.show(); 390 392 this.splitView.element.style.bottom = "auto"; 391 this._setSplitterPosition( 600);393 this._setSplitterPosition(WebInspector.settings.memoryCounterGraphsHeight.get()); 392 394 } 393 395 this._refresh(); … … 507 509 this._closeRecordDetails(); 508 510 this._allRecordsCount = 0; 511 if (this._memoryStatistics) 512 this._memoryStatistics.reset(); 509 513 }, 510 514 -
trunk/Source/WebCore/inspector/front-end/timelinePanel.css
r109102 r109109 600 600 #counter-values-bar { 601 601 border-bottom: solid 1px lightgray; 602 min-height: 15px; 602 603 } 603 604
Note: See TracChangeset
for help on using the changeset viewer.