Changeset 242520 in webkit
- Timestamp:
- Mar 5, 2019 4:40:44 PM (5 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r242511 r242520 1 2019-03-05 Joseph Pecoraro <pecoraro@apple.com> 2 3 Web Inspector: recordsInTimeRange sometimes does not get the expected record when includeRecordBeforeStart 4 https://bugs.webkit.org/show_bug.cgi?id=195317 5 6 Reviewed by Devin Rousso. 7 8 * UserInterface/Models/Timeline.js: 9 (WI.Timeline.prototype.recordsOverlappingTimeRange): 10 1 11 2019-03-05 Devin Rousso <drousso@apple.com> 2 12 -
trunk/Source/WebInspectorUI/UserInterface/Models/Timeline.js
r242104 r242520 108 108 109 109 // Include the record right before the start time. 110 if (includeRecordBeforeStart && lowerIndex > 0) 110 if (includeRecordBeforeStart && lowerIndex > 0) { 111 111 lowerIndex--; 112 113 // If the record right before is a child of the same type of record, then use the parent as the before index. 114 let recordBefore = this._records[lowerIndex]; 115 if (recordBefore.parent && recordBefore.parent.type === recordBefore.type) { 116 lowerIndex--; 117 while (this._records[lowerIndex] !== recordBefore.parent) 118 lowerIndex--; 119 } 120 } 112 121 113 122 return this._records.slice(lowerIndex, upperIndex);
Note: See TracChangeset
for help on using the changeset viewer.