Title: [209462] trunk/Source/WebCore
Revision
209462
Author
gga...@apple.com
Date
2016-12-07 10:39:44 -0800 (Wed, 07 Dec 2016)

Log 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):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (209461 => 209462)


--- trunk/Source/WebCore/ChangeLog	2016-12-07 18:33:28 UTC (rev 209461)
+++ trunk/Source/WebCore/ChangeLog	2016-12-07 18:39:44 UTC (rev 209462)
@@ -1,3 +1,14 @@
+2016-12-06  Geoffrey Garen  <gga...@apple.com>
+
+        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):
+
 2016-12-07  Dave Hyatt  <hy...@apple.com>
 
         [CSS Parser] Turn back on a bunch of layout tests

Modified: trunk/Source/WebCore/page/Performance.cpp (209461 => 209462)


--- trunk/Source/WebCore/page/Performance.cpp	2016-12-07 18:33:28 UTC (rev 209461)
+++ trunk/Source/WebCore/page/Performance.cpp	2016-12-07 18:39:44 UTC (rev 209462)
@@ -214,7 +214,7 @@
 
 double Performance::reduceTimeResolution(double seconds)
 {
-    const double resolutionSeconds = 0.000005;
+    const double resolutionSeconds = 0.0001;
     return std::floor(seconds / resolutionSeconds) * resolutionSeconds;
 }
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to