[webkit-changes] [WebKit/WebKit] 1e0887: [scroll-animations] Implement basic view timeline ...

Nikos Mouchtaris noreply at github.com
Mon Sep 23 17:54:13 PDT 2024


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

  Changed paths:
    M Source/WebCore/animation/ScrollTimeline.h
    M Source/WebCore/animation/ViewTimeline.cpp
    M Source/WebCore/animation/ViewTimeline.h
    M Source/WebCore/page/scrolling/ScrollAnchoringController.cpp
    M Source/WebCore/page/scrolling/ScrollAnchoringController.h
    M Source/WebCore/page/scrolling/ScrollSnapOffsetsInfo.cpp
    M Source/WebCore/rendering/RenderLayerModelObject.cpp
    M Source/WebCore/rendering/RenderObject.cpp
    M Source/WebCore/rendering/RenderObject.h

  Log Message:
  -----------
  [scroll-animations] Implement basic view timeline progress calculation
https://bugs.webkit.org/show_bug.cgi?id=279799
rdar://136115845

Reviewed by Simon Fraser.

Implement basic view timeline progress calculation based on the spec:
https://drafts.csswg.org/scroll-animations-1/#view-timeline-progress. Also add a way
to find the source element for the ViewTimeline, based on the spec:
https://drafts.csswg.org/scroll-animations-1/#dom-scrolltimeline-source.

* Source/WebCore/animation/ViewTimeline.cpp:
(WebCore::ViewTimeline::source const):
(WebCore::ViewTimeline::sourceRenderer const):
(WebCore::ViewTimeline::computeViewTimelineData const):
* Source/WebCore/animation/ViewTimeline.h:

Canonical link: https://commits.webkit.org/284126@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