Title: [260870] trunk/Source/WebCore
Revision
260870
Author
s...@apple.com
Date
2020-04-28 22:36:17 -0700 (Tue, 28 Apr 2020)

Log Message

Rendering update steps should use Seconds for the timestamps
https://bugs.webkit.org/show_bug.cgi?id=210990

Unreviewed.

serviceRequestAnimationFrameCallbacks() should return rounded milliseconds.
This rounding was removed in r260736. So put it back.

* dom/ScriptedAnimationController.cpp:
(WebCore::ScriptedAnimationController::serviceRequestAnimationFrameCallbacks):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (260869 => 260870)


--- trunk/Source/WebCore/ChangeLog	2020-04-29 05:29:28 UTC (rev 260869)
+++ trunk/Source/WebCore/ChangeLog	2020-04-29 05:36:17 UTC (rev 260870)
@@ -1,3 +1,16 @@
+2020-04-28  Said Abou-Hallawa  <sabouhall...@apple.com>
+
+        Rendering update steps should use Seconds for the timestamps
+        https://bugs.webkit.org/show_bug.cgi?id=210990
+
+        Unreviewed.
+
+        serviceRequestAnimationFrameCallbacks() should return rounded milliseconds.
+        This rounding was removed in r260736. So put it back.
+
+        * dom/ScriptedAnimationController.cpp:
+        (WebCore::ScriptedAnimationController::serviceRequestAnimationFrameCallbacks):
+
 2020-04-28  Carlos Garcia Campos  <cgar...@igalia.com>
 
         [GTK4] Add support for key events

Modified: trunk/Source/WebCore/dom/ScriptedAnimationController.cpp (260869 => 260870)


--- trunk/Source/WebCore/dom/ScriptedAnimationController.cpp	2020-04-29 05:29:28 UTC (rev 260869)
+++ trunk/Source/WebCore/dom/ScriptedAnimationController.cpp	2020-04-29 05:36:17 UTC (rev 260870)
@@ -200,7 +200,7 @@
 
     TraceScope tracingScope(RAFCallbackStart, RAFCallbackEnd);
 
-    auto highResNowMs = timestamp.milliseconds();
+    auto highResNowMs = std::round(1000 * timestamp.seconds());
     if (m_document && m_document->quirks().needsMillisecondResolutionForHighResTimeStamp())
         highResNowMs += 0.1;
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to