Changeset 202932 in webkit
- Timestamp:
- Jul 7, 2016, 2:26:33 PM (10 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 5 edited
-
ChangeLog (modified) (1 diff)
-
UserInterface/Views/ClusterContentView.js (modified) (1 diff)
-
UserInterface/Views/DOMStorageContentView.js (modified) (1 diff)
-
UserInterface/Views/HeapAllocationsTimelineView.js (modified) (4 diffs)
-
UserInterface/Views/ScriptClusterTimelineView.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r202891 r202932 1 2016-07-07 Timothy Hatcher <timothy@apple.com> 2 3 Web Inspector: scrolled Snapshot list is reset to top and drawn blank after switching back from Snapshot Comparison view 4 https://bugs.webkit.org/show_bug.cgi?id=158218 5 rdar://problem/26545000 6 7 Reviewed by Brian Burg. 8 9 * UserInterface/Views/ClusterContentView.js: 10 (WebInspector.ClusterContentView.prototype.get scrollableElements): Added. 11 A default implementation for all cluster views. 12 13 * UserInterface/Views/DOMStorageContentView.js: 14 (WebInspector.DOMStorageContentView.prototype.get scrollableElements): Deleted. 15 This was duplicated in the class, removed one. 16 17 * UserInterface/Views/HeapAllocationsTimelineView.js: 18 (WebInspector.HeapAllocationsTimelineView): Initialize _snapshotListScrollTop. 19 (WebInspector.HeapAllocationsTimelineView.prototype.get scrollableElements): Added. Return elements 20 based on what is showing. 21 22 (WebInspector.HeapAllocationsTimelineView.prototype.showHeapSnapshotList): Restore the scroll position 23 of the DataGrid after it is added to the view. 24 25 (WebInspector.HeapAllocationsTimelineView.prototype.showHeapSnapshotTimelineRecord): Save the scroll position 26 of the DataGrid before it is removed from the view. 27 28 * UserInterface/Views/ScriptClusterTimelineView.js: 29 (WebInspector.ScriptClusterTimelineView.prototype.get scrollableElements): Deleted. Handled by the base class now. 30 1 31 2016-07-06 Timothy Hatcher <timothy@apple.com> 2 32 -
trunk/Source/WebInspectorUI/UserInterface/Views/ClusterContentView.js
r192086 r202932 98 98 } 99 99 100 get scrollableElements() 101 { 102 if (!this._contentViewContainer.currentContentView) 103 return []; 104 return this._contentViewContainer.currentContentView.scrollableElements; 105 } 106 100 107 get selectionPathComponents() 101 108 { -
trunk/Source/WebInspectorUI/UserInterface/Views/DOMStorageContentView.js
r202133 r202932 118 118 } 119 119 120 get scrollableElements()121 {122 if (!this._dataGrid)123 return [];124 return [this._dataGrid.scrollContainer];125 }126 127 120 // Private 128 121 -
trunk/Source/WebInspectorUI/UserInterface/Views/HeapAllocationsTimelineView.js
r202383 r202932 78 78 this._heapSnapshotDiff = null; 79 79 80 this._snapshotListScrollTop = 0; 80 81 this._showingSnapshotList = true; 81 82 … … 106 107 // Public 107 108 109 get scrollableElements() 110 { 111 if (this._showingSnapshotList) 112 return [this._dataGrid.scrollContainer]; 113 if (this._contentViewContainer.currentContentView) 114 return this._contentViewContainer.currentContentView.scrollableElements; 115 return []; 116 } 117 108 118 showHeapSnapshotList() 109 119 { … … 119 129 this.addSubview(this._dataGrid); 120 130 131 this._dataGrid.scrollContainer.scrollTop = this._snapshotListScrollTop; 132 121 133 this.dispatchEventToListeners(WebInspector.ContentView.Event.SelectionPathComponentsDidChange); 122 134 this.dispatchEventToListeners(WebInspector.ContentView.Event.NavigationItemsDidChange); … … 126 138 { 127 139 if (this._showingSnapshotList) { 140 this._snapshotListScrollTop = this._dataGrid.scrollContainer.scrollTop; 128 141 this.removeSubview(this._dataGrid); 129 142 this.addSubview(this._contentViewContainer); -
trunk/Source/WebInspectorUI/UserInterface/Views/ScriptClusterTimelineView.js
r200947 r202932 72 72 get currentTime() { return this._contentViewContainer.currentContentView.currentTime; } 73 73 set currentTime(x) { this._contentViewContainer.currentContentView.currentTime = x; } 74 get scrollableElements() { return this._contentViewContainer.currentContentView.scrollableElements; }75 74 selectRecord(record) { this._contentViewContainer.currentContentView.selectRecord(record); } 76 75 updateFilter(filters) { return this._contentViewContainer.currentContentView.updateFilter(filters); }
Note:
See TracChangeset
for help on using the changeset viewer.