Changeset 220430 in webkit


Ignore:
Timestamp:
Aug 8, 2017 5:03:55 PM (7 years ago)
Author:
wilander@apple.com
Message:

Resource Load Statistics: Merge of dataRecordsRemoved should use std::max()
https://bugs.webkit.org/show_bug.cgi?id=175348
<rdar://problem/33785695>

Reviewed by Chris Dumez.

No new tests. Online change of a statistic that doesn't affect logic flow.

  • loader/ResourceLoadStatistics.cpp:

(WebCore::ResourceLoadStatistics::merge):

Now uses std::max() instead of addition.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r220427 r220430  
     12017-08-08  John Wilander  <wilander@apple.com>
     2
     3        Resource Load Statistics: Merge of dataRecordsRemoved should use std::max()
     4        https://bugs.webkit.org/show_bug.cgi?id=175348
     5        <rdar://problem/33785695>
     6
     7        Reviewed by Chris Dumez.
     8
     9        No new tests. Online change of a statistic that doesn't affect logic flow.
     10
     11        * loader/ResourceLoadStatistics.cpp:
     12        (WebCore::ResourceLoadStatistics::merge):
     13            Now uses std::max() instead of addition.
     14
    1152017-08-08  Brent Fulgham  <bfulgham@apple.com>
    216
  • trunk/Source/WebCore/loader/ResourceLoadStatistics.cpp

    r219319 r220430  
    227227    // Prevalent resource stats
    228228    isPrevalentResource |= other.isPrevalentResource;
    229     dataRecordsRemoved += other.dataRecordsRemoved;
     229    dataRecordsRemoved = std::max(dataRecordsRemoved, other.dataRecordsRemoved);
    230230   
    231231    // In-memory only
Note: See TracChangeset for help on using the changeset viewer.