Changeset 187123 in webkit
- Timestamp:
- Jul 21, 2015, 2:23:26 PM (11 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
UserInterface/Models/DefaultDashboard.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r187105 r187123 1 2015-07-21 Joseph Pecoraro <pecoraro@apple.com> 2 3 Web Inspector: Total download size doesn't update soon after loading 4 https://bugs.webkit.org/show_bug.cgi?id=147161 5 6 Reviewed by Timothy Hatcher. 7 8 * UserInterface/Models/DefaultDashboard.js: 9 (WebInspector.DefaultDashboard.prototype._mainResourceDidChange): 10 Previously autorecording would always have made us start capturing, 11 however we only autorecord if users are on the Timeline tab. Just 12 reset the time always, a navigation happened and start the timer. 13 14 (WebInspector.DefaultDashboard.prototype._resourceSizeDidChange): 15 Move to a better location within the file. 16 1 17 2015-07-21 Nikita Vasilyev <nvasilyev@apple.com> 2 18 -
trunk/Source/WebInspectorUI/UserInterface/Models/DefaultDashboard.js
r186925 r187123 136 136 return; 137 137 138 this._time = 0; 138 139 this._resourcesCount = 1; 139 140 this._resourcesSize = WebInspector.frameResourceManager.mainFrame.mainResource.size || 0; 140 141 // Only update the time if we are recording the timeline.142 if (!WebInspector.timelineManager.isCapturing()) {143 this._time = 0;144 return;145 }146 141 147 142 // We should only track resource sizes on fresh loads. … … 169 164 { 170 165 ++this.resourcesCount; 166 } 167 168 _resourceSizeDidChange(event) 169 { 170 this.resourcesSize += event.target.size - event.data.previousSize; 171 171 } 172 172 … … 222 222 223 223 this._stopUpdatingTime(); 224 }225 226 _resourceSizeDidChange(event)227 {228 this.resourcesSize += event.target.size - event.data.previousSize;229 224 } 230 225
Note:
See TracChangeset
for help on using the changeset viewer.