[webkit-changes] [WebKit/WebKit] bdef39: Refactor DocumentTimelineController to hold a set ...

Nikos Mouchtaris noreply at github.com
Tue Sep 10 09:27:39 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: bdef391506cd56d72c5d66467c5075b2b6ed01e7
      https://github.com/WebKit/WebKit/commit/bdef391506cd56d72c5d66467c5075b2b6ed01e7
  Author: Nikolaos Mouchtaris <nmouchtaris at apple.com>
  Date:   2024-09-10 (Tue, 10 Sep 2024)

  Changed paths:
    M Source/WebCore/Headers.cmake
    M Source/WebCore/SmartPointerExpectations/NoUncountedMemberCheckerExpectations
    M Source/WebCore/SmartPointerExpectations/UncountedCallArgsCheckerExpectations
    M Source/WebCore/SmartPointerExpectations/UncountedLocalVarsCheckerExpectations
    M Source/WebCore/Sources.txt
    M Source/WebCore/WebCore.xcodeproj/project.pbxproj
    A Source/WebCore/animation/AnimationTimelinesController.cpp
    A Source/WebCore/animation/AnimationTimelinesController.h
    M Source/WebCore/animation/DocumentTimeline.cpp
    M Source/WebCore/animation/DocumentTimeline.h
    R Source/WebCore/animation/DocumentTimelinesController.cpp
    R Source/WebCore/animation/DocumentTimelinesController.h
    M Source/WebCore/dom/Document.cpp
    M Source/WebCore/dom/Document.h
    M Source/WebCore/page/LocalFrame.cpp
    M Source/WebCore/page/Page.cpp
    M Source/WebCore/page/Page.h
    M Source/WebCore/testing/Internals.cpp

  Log Message:
  -----------
  Refactor DocumentTimelineController to hold a set of AnimationTimelines
https://bugs.webkit.org/show_bug.cgi?id=279253
rdar://135402390

Reviewed by Tim Nguyen.

In anticipation of implementing scroll-driven animations, refactor
DocumentTimelineController to be AnimationTimelineController, holding a set of
AnimationTimelines, so that ScrollTimelines and ViewTimelines can be updated
through the same mechanism as DocumentTimelines.

* Source/WebCore/Sources.txt:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/animation/DocumentTimeline.cpp:
(WebCore::DocumentTimeline::controller const):
(WebCore::DocumentTimeline::scheduleNextTick):
* Source/WebCore/animation/DocumentTimeline.h:
* Source/WebCore/animation/DocumentTimelinesController.cpp: Removed.
* Source/WebCore/animation/DocumentTimelinesController.h: Removed.
* Source/WebCore/animation/ScrollTimeline.cpp:
(WebCore::ScrollTimeline::ScrollTimeline):
* Source/WebCore/dom/Document.cpp:
(WebCore::Document::ensureTimelinesController):
* Source/WebCore/dom/Document.h:
(WebCore::Document::timelinesController const):
* Source/WebCore/page/LocalFrame.cpp:
* Source/WebCore/page/Page.cpp:
(WebCore::Page::scheduleRenderingUpdate):
(WebCore::Page::updateRendering):
(WebCore::Page::timelineControllerMaximumAnimationFrameRateDidChange):
(WebCore::Page::preferredRenderingUpdateFramesPerSecond const):
* Source/WebCore/page/Page.h:
* Source/WebCore/testing/Internals.cpp:

Canonical link: https://commits.webkit.org/283419@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list