⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 187300 in webkit


Ignore:
Timestamp:
Jul 23, 2015, 11:31:07 PM (11 years ago)
Author:
Lucas Forschler
Message:

Merged r187123. rdar://problem/21925581

Location:
branches/safari-601.1-branch/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-601.1-branch/Source/WebInspectorUI/ChangeLog

    r186952 r187300  
     12015-07-23  Lucas Forschler  <lforschler@apple.com>
     2
     3        Merge r187123
     4
     5    2015-07-21  Joseph Pecoraro  <pecoraro@apple.com>
     6
     7            Web Inspector: Total download size doesn't update soon after loading
     8            https://bugs.webkit.org/show_bug.cgi?id=147161
     9
     10            Reviewed by Timothy Hatcher.
     11
     12            * UserInterface/Models/DefaultDashboard.js:
     13            (WebInspector.DefaultDashboard.prototype._mainResourceDidChange):
     14            Previously autorecording would always have made us start capturing,
     15            however we only autorecord if users are on the Timeline tab. Just
     16            reset the time always, a navigation happened and start the timer.
     17
     18            (WebInspector.DefaultDashboard.prototype._resourceSizeDidChange):
     19            Move to a better location within the file.
     20
    1212015-07-16  Matthew Hanson  <matthew_hanson@apple.com>
    222
  • branches/safari-601.1-branch/Source/WebInspectorUI/UserInterface/Models/DefaultDashboard.js

    r186951 r187300  
    136136            return;
    137137
     138        this._time = 0;
    138139        this._resourcesCount = 1;
    139140        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         }
    146141
    147142        // We should only track resource sizes on fresh loads.
     
    169164    {
    170165        ++this.resourcesCount;
     166    }
     167
     168    _resourceSizeDidChange(event)
     169    {
     170        this.resourcesSize += event.target.size - event.data.previousSize;
    171171    }
    172172
     
    222222
    223223        this._stopUpdatingTime();
    224     }
    225 
    226     _resourceSizeDidChange(event)
    227     {
    228         this.resourcesSize += event.target.size - event.data.previousSize;
    229224    }
    230225
Note: See TracChangeset for help on using the changeset viewer.