Changeset 209462 in webkit


Ignore:
Timestamp:
Dec 7, 2016, 10:39:44 AM (8 years ago)
Author:
ggaren@apple.com
Message:

performance.now() should truncate to 100us
https://bugs.webkit.org/show_bug.cgi?id=165503
<rdar://problem/29544531>

Reviewed by Mark Lam.

  • page/Performance.cpp:

(WebCore::Performance::reduceTimeResolution):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r209460 r209462  
     12016-12-06  Geoffrey Garen  <ggaren@apple.com>
     2
     3        performance.now() should truncate to 100us
     4        https://bugs.webkit.org/show_bug.cgi?id=165503
     5        <rdar://problem/29544531>
     6
     7        Reviewed by Mark Lam.
     8
     9        * page/Performance.cpp:
     10        (WebCore::Performance::reduceTimeResolution):
     11
    1122016-12-07  Dave Hyatt  <hyatt@apple.com>
    213
  • trunk/Source/WebCore/page/Performance.cpp

    r207522 r209462  
    215215double Performance::reduceTimeResolution(double seconds)
    216216{
    217     const double resolutionSeconds = 0.000005;
     217    const double resolutionSeconds = 0.0001;
    218218    return std::floor(seconds / resolutionSeconds) * resolutionSeconds;
    219219}
Note: See TracChangeset for help on using the changeset viewer.