Changeset 260870 in webkit


Ignore:
Timestamp:
Apr 28, 2020 10:36:17 PM (4 years ago)
Author:
Said Abou-Hallawa
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):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r260869 r260870  
     12020-04-28  Said Abou-Hallawa  <sabouhallawa@apple.com>
     2
     3        Rendering update steps should use Seconds for the timestamps
     4        https://bugs.webkit.org/show_bug.cgi?id=210990
     5
     6        Unreviewed.
     7
     8        serviceRequestAnimationFrameCallbacks() should return rounded milliseconds.
     9        This rounding was removed in r260736. So put it back.
     10
     11        * dom/ScriptedAnimationController.cpp:
     12        (WebCore::ScriptedAnimationController::serviceRequestAnimationFrameCallbacks):
     13
    1142020-04-28  Carlos Garcia Campos  <cgarcia@igalia.com>
    215
  • trunk/Source/WebCore/dom/ScriptedAnimationController.cpp

    r260736 r260870  
    201201    TraceScope tracingScope(RAFCallbackStart, RAFCallbackEnd);
    202202
    203     auto highResNowMs = timestamp.milliseconds();
     203    auto highResNowMs = std::round(1000 * timestamp.seconds());
    204204    if (m_document && m_document->quirks().needsMillisecondResolutionForHighResTimeStamp())
    205205        highResNowMs += 0.1;
Note: See TracChangeset for help on using the changeset viewer.