Changeset 201131 in webkit
- Timestamp:
- May 19, 2016, 1:39:47 AM (9 years ago)
- Location:
- branches/safari-602.1.32-branch/Source/WebInspectorUI
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-602.1.32-branch/Source/WebInspectorUI/ChangeLog
r201032 r201131 1 2016-05-19 Babak Shafiei <bshafiei@apple.com> 2 3 Merge r200656. rdar://problem/25898256 4 5 2016-05-10 Matt Baker <mattbaker@apple.com> 6 7 Web Inspector: Can't select record bar in Frames timeline 8 https://bugs.webkit.org/show_bug.cgi?id=156963 9 <rdar://problem/25898256> 10 11 Reviewed by Timothy Hatcher. 12 13 Sync record selection between the Rendering Frames grid and overview graph. 14 15 * UserInterface/Views/DataGrid.js: 16 (WebInspector.DataGridNode.prototype.hasAncestor): 17 Add helper function needed by TimelineView. 18 19 * UserInterface/Views/RenderingFrameTimelineOverviewGraph.js: 20 (WebInspector.RenderingFrameTimelineOverviewGraph.prototype._mouseClicked): 21 Don't deselect the selected record when clicked. Initially this seemed 22 like a good idea but it complicates the UI for no added value. 23 24 * UserInterface/Views/TimelineRecordingContentView.js: 25 (WebInspector.TimelineRecordingContentView.prototype._contentViewSelectionPathComponentDidChange): 26 Get path components from the current TimelineView instead of the 27 TimelineRecordingContentView, now that the selected record appears 28 in the bottom ContentBrowser's navigation bar. 29 1 30 2016-05-17 Babak Shafiei <bshafiei@apple.com> 2 31 -
branches/safari-602.1.32-branch/Source/WebInspectorUI/UserInterface/Views/DataGrid.js
r200270 r201131 2029 2029 } 2030 2030 2031 hasAncestor(ancestor) 2032 { 2033 if (!ancestor) 2034 return false; 2035 2036 let currentAncestor = this.parent; 2037 while (currentAncestor) { 2038 if (ancestor === currentAncestor) 2039 return true; 2040 2041 currentAncestor = currentAncestor.parent; 2042 } 2043 2044 return false; 2045 } 2046 2031 2047 refresh() 2032 2048 { -
branches/safari-602.1.32-branch/Source/WebInspectorUI/UserInterface/Views/RenderingFrameTimelineOverviewGraph.js
r198620 r201131 260 260 return; 261 261 262 // Clicking the selected frame causes it to be deselected.263 262 if (this.selectedRecord === newSelectedRecord) 264 newSelectedRecord = null;263 return; 265 264 266 265 if (frameIndex >= this.timelineOverview.selectionStartTime && frameIndex < this.timelineOverview.selectionStartTime + this.timelineOverview.selectionDuration) { -
branches/safari-602.1.32-branch/Source/WebInspectorUI/UserInterface/Views/TimelineRecordingContentView.js
r201007 r201131 326 326 return; 327 327 328 var recordPathComponent = this.selectionPathComponents.find(function(element) { return element.representedObject instanceof WebInspector.TimelineRecord; }); 329 var record = recordPathComponent ? recordPathComponent.representedObject : null; 328 let record = null; 329 if (this.currentTimelineView.selectionPathComponents) { 330 let recordPathComponent = this.currentTimelineView.selectionPathComponents.find((element) => element.representedObject instanceof WebInspector.TimelineRecord); 331 record = recordPathComponent ? recordPathComponent.representedObject : null; 332 } 333 330 334 this._timelineOverview.selectRecord(event.target.representedObject, record); 331 335 }
Note:
See TracChangeset
for help on using the changeset viewer.