Changeset 226151 in webkit
- Timestamp:
- Dec 19, 2017, 3:40:16 PM (7 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r226149 r226151 1 2017-12-19 Joseph Pecoraro <pecoraro@apple.com> 2 3 Web Inspector: Network Table - Update the Time column to include the total duration not just the download duration 4 https://bugs.webkit.org/show_bug.cgi?id=180998 5 <rdar://problem/36140424> 6 7 Reviewed by Matt Baker. 8 9 * UserInterface/Models/Resource.js: 10 (WI.Resource.prototype.get totalDuration): 11 (WI.Resource.prototype.get duration): Deleted. 12 Rename and group getters to be clearer. 13 14 * UserInterface/Views/NetworkTableContentView.js: 15 (WI.NetworkTableContentView.prototype._entryForResource): 16 Use the totalDuration for the network table time column. 17 18 * UserInterface/Views/ResourceTimelineDataGridNode.js: 19 (WI.ResourceTimelineDataGridNode.prototype._mouseoverRecordBar graphDataSource.get secondsPerPixel): 20 Using the download duration was incorrect here. 21 1 22 2017-12-19 Devin Rousso <webkit@devinrousso.com> 2 23 -
trunk/Source/WebInspectorUI/UserInterface/Models/Resource.js
r225546 r226151 533 533 } 534 534 535 get duration()536 {537 return this.timingData.responseEnd - this.timingData.requestStart;538 }539 540 535 get latency() 541 536 { … … 546 541 { 547 542 return this.timingData.responseEnd - this.timingData.responseStart; 543 } 544 545 get totalDuration() 546 { 547 return this.timingData.responseEnd - this.timingData.startTime; 548 548 } 549 549 -
trunk/Source/WebInspectorUI/UserInterface/Views/NetworkTableContentView.js
r226070 r226151 1197 1197 resourceSize: resource.size, 1198 1198 transferSize: !isNaN(resource.networkTotalTransferSize) ? resource.networkTotalTransferSize : resource.estimatedTotalTransferSize, 1199 time: resource. duration,1199 time: resource.totalDuration, 1200 1200 protocol: resource.protocol, 1201 1201 priority: resource.priority, -
trunk/Source/WebInspectorUI/UserInterface/Views/ResourceTimelineDataGridNode.js
r224595 r226151 385 385 386 386 let graphDataSource = { 387 get secondsPerPixel() { return resource. duration / WI.ResourceTimelineDataGridNode.PopoverGraphColumnWidthPixels; },387 get secondsPerPixel() { return resource.totalDuration / WI.ResourceTimelineDataGridNode.PopoverGraphColumnWidthPixels; }, 388 388 get zeroTime() { return resource.firstTimestamp; }, 389 389 get startTime() { return resource.firstTimestamp; },
Note:
See TracChangeset
for help on using the changeset viewer.